Two earthquakes of magnitude 4.2 and 4.5 hit Afghanistan in the early hours of Saturday.