An earthquake of magnitude 4.0 jolted Afghanistan on Monday, a statement by the National Center for Seismology (NCS) said.