An earthquake of magnitude 4.2 jolted Afghanistan on Saturday, the National Centre of Seismology (NCS) reported.