A strong earthquake has shaken northern Afghanistan near Mazar-i-Sharif, with local authorities reporting several deaths and dozens of injured.