En jordbävning med magnituden 6,3 har inträffat i norra Afghanistan, enligt USA:s geologiska myndighet USGS.