At least 9 people have died and 44 injured in Pakistan's Khyber Pakhtunkhwa province after a 6.5-magnitude earthquake struck Afghanistan, Pakistan and Indian parts late on Tuesday, a government official said.

Abdul Basit, a senior Khyber Pakhtunkhwa government official, told Reuters on Wednesday that at least 19 houses had been partially damaged by the quake.

A policeman told Reuters a 13-year-old girl died when a wall collapsed on top of her house, and 150 people were injured in Pakistan's northern Swat district, where hospitals have declared a state of emergency.

A spokesman for Afghanistan's disaster response ministry said two people were killed in the eastern province of Laghman.

The quake's epicenter was located in southeastern Afghanistan near the town of Jerm on the border with Pakistan and Tajikistan, while it was more than 187 kilometers deep, according to the U.S. Geological Survey.

It was felt in large parts of Afghanistan and Pakistan and in the northern parts of India.

On June 22, more than a thousand people were killed and tens of thousands displaced after a magnitude 5.9 earthquake struck the impoverished province of Paktika, the deadliest in Afghanistan in nearly a quarter of a century.

Last month, more than 55,<> people were killed by an earthquake that struck southeastern Turkey and parts of Syria.