A 4.2 magnitude earthquake struck Afghanistan at a depth of 125 km, according to the National Center for Seismology (NCS).