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