Haji Zaid, a Taliban spokesman in Balkh province wrote earlier on X that "many people are injured" in the Sholgara district, south of Mazar-e- Sharif.
He said they had received "reports of minor injuries and superficial damages from all districts of the province".
"Most of the injuries were caused by people falling from tall buildings," he wrote.
Many of Mazar-e Sharif's residents rushed to the streets when the quake struck, as they feared their houses would collapse, AFP news agency reported.
The quake led to a power outage across the country including in the capital city Kabul, after electricity lines from Uzbekistan and Tajikistan - major suppliers of power to Afghanistan - were damaged.
The Taliban spokesman in Balkh also posted a video on X appearing to show debris strewn across the ground at the Blue Mosque in Mazar-e-Sharif, revered by Shia Muslims.
