An earthquake of 4.2 magnitude on the Richter Scale jolted Afghanistan on Thursday, the National Center for Seismology stated.