Islamabad residents said the tremor lasted less than 10 seconds, but workers in high-rise towers said it was strong enough to make their buildings sway alarmingly.