Photographs on Afghan media showed houses reduced to rubble, with bodies swathed in blankets lying on the ground.
Helicopters were deployed in the rescue effort to reach the injured and fly in medical supplies and food, said an interior ministry official, Salahuddin Ayubi.
“It was strong,” said a resident of the northwestern Pakistani city of Peshawar.
Photographs on Afghan media showed houses reduced to rubble and bodies covered in blankets on the ground. The EMSC put the magnitude at 6.1 though the USGC said it was 5.9.
Most of the confirmed deaths were in the eastern Afghan province of Paktika, where 255 people had been killed and more than 200 injured, said interior ministry official Salahuddin Ayubi.
In Khost province, 25 people had been killed and 90 taken to hospital, he said.
The foreign ministry of Pakistan and Prime Minister Shehbaz Sharif have expressed condolences over the lives lost in the earthquake. The Prime Minister said that that “relevant authorities are working to support Afghanistan in this time of need.