A magnitude 6.2 earthquake rocked Afghanistan and various parts of Pakistan on Wednesday, sending people racing out of buildings in the two capitals and injuring at least 13 people and damaging dozens of homes in both countries.

The quake struck at 1041 GMT near Afghanistan's border with Tajikistan in the Hindu Kush mountains at a depth of 111 kilometres, the US Geological Survey said.

Omer Mohammadi, a spokesman for Afghanistan's disaster management authority, said two small children were injured when their home collapsed and one of them was listed in critical condition.

Abdul Razak Zinda, a senior official at a disaster management agency, said 45 houses were damaged in three districts in the northeastern Takhar province of Afghanistan. He said three people were injured.

In Islamabad and Kabul, people fled their offices and homes and recited verses from the Holy Quran in the streets. AFP correspondents in the capital Kabul felt the ground move for at least a minute in the second quake that came a few hours after the first.

In Peshawar, people rushed into the streets following the tremor, fearing aftershocks, witnesses told AFP.

Earlier on Wednesday, a magnitude 5.1 earthquake rattled parts of western Pakistan, near the border with Afghanistan. That quake caused a stampede at a school in Bannu, injuring at least 10 students, according to Mohammad Aslam, a local police official.

Taimoor Khan, a senior official at the provincial disaster management authority in Peshawar, said the quake did not cause damages to buildings, but they were still waiting for the final report from remote areas near Afghanistan.

Afghanistan is frequently hit by earthquakes, especially in the Hindu Kush near the junction of the Eurasian and Indian tectonic plates.

Aid agencies have stressed the need for greater disaster preparedness in the war-torn country, which remains extremely susceptible to natural disasters such as floods, quakes and landslides.

A devastating 7.5-magnitude quake that struck Badakhshan in October 2015 triggered landslides and flattened buildings, killing more than 380 people across the region including 248 in Pakistan.

Earlier Wednesday, a magnitude 5.1 earthquake rattled parts of western Pakistan, near the border with Afghanistan. That quake caused a stampede at a school in Bannu, injuring at least 10 students, according to Mohammad Aslam, a local police official.

Opinion

Editorial

Crisis conference
Updated 04 Feb, 2023

Crisis conference

PTI's refusal to engage with the govt in such testing times will only be seen as sign of ideological bankruptcy.
Revenge politics
04 Feb, 2023

Revenge politics

A SENSE of déjà-vu prevails as cases pile up against PTI politicians, many of whom, along with their allies and...
Inappropriate remarks
04 Feb, 2023

Inappropriate remarks

OFFICIALS of the state, especially when representing the country at international forums, need to choose their words...
Delay in the offing?
Updated 03 Feb, 2023

Delay in the offing?

Govt must realise that political stability in the country cannot be achieved by extra-constitutional actions.
Divisions in PML-N
03 Feb, 2023

Divisions in PML-N

DISCORD and drama in PML-N ranks escalated this week when Shahid Khaqan Abbasi revealed he no longer holds a party...
Wikipedia ‘downgrade’
03 Feb, 2023

Wikipedia ‘downgrade’

ATTEMPTS to police the internet by states, often by giving opaque justifications for the action, are never a good...