KABUL (AFP)

A strong earthquake rocked eastern Afghanistan including the capital Kabul on Friday, AFP journalists and residents said.

The 5.8-magnitude quake struck a mountainous area around 130 kilometres (80 miles) northeast of Kabul, the United States Geological Survey said.

The epicentre was near several remote villages and struck at 5:39 pm (1309 GMT), just as people in the country were sitting down to break their Ramadan fast.

Power was briefly cut in parts of the capital, while east of Kabul an AFP journalist in Nangarhar province also felt it.

Earthquakes are common in Afghanistan, particularly along the Hindu Kush mountain range, near where the Eurasian and Indian tectonic plates meet.

Haqmal Saad, spokesman for the Panjshir province police, described the quake as "very strong" and said the force was "gathering information on the ground".

Mohibullah Jahid, head of Panjshir Natural Disaster Management agency, told AFP he was in touch with several officials in the area.

The district governor had told him there were reports of "minor damage, such as cracks in the walls, but we have not received anything serious, such as the collapse of houses or anything similar", Jahid said.

Residents in Bamiyan and Wardak provinces, west of Kabul, told AFP they also felt the earthquake.

In Pakistan's Khyber Pakhtunkhwa province, rescue service official Bilal Ahmad Faizi said the quake was felt in border areas.

In August last year, a shallow 6.0-magnitude quake in the country's east wiped out mountainside villages and killed more than 2,200 people.

Weeks later, a 6.3-magnitude quake in northern Afghanistan killed at least 27 people.