ISLAMABAD, Pakistan — A powerful earthquake rattled parts of Pakistan, India and Afghanistan on Sunday, shaking buildings and houses and causing panic in several cities.

There were no immediate reports of widespread damage from the quake, which had a preliminary magnitude of 6.6, but at least one person was reported to have been killed and two dozen were injured, the Pakistani authorities said.

The earthquake was centered 25 miles west of Ashkasham in a remote northeastern region of Afghanistan, near the country’s borders with Tajikistan and Pakistan, the United States Geological Survey said. It was measured at a depth of 130 miles.

At least 20 people with minor injuries were admitted to the Lady Reading Hospital in the northwestern Pakistani city of Peshawar, the local news media reported.