The 6.3-magnitude quake struck near Mazar-i-Sharif, a northern city known for its magnificent Blue Mosque, which suffered damage.