An earthquake of magnitude 3.9 struck Afghanistan on Saturday, a statement by the National Center for Seismology (NCS) said.