An earthquake of magnitude 4.7 on the Richter scale jolted Afghanistan on Sunday, the National Centre of Seismology (NCS) said.