An earthquake of magnitude 5.8 has struck Pakistan, the German Research Center for Geosciences (GFZ) said on Wednesday. The quake was at a depth of 10 kilometers (6.21 miles), GFZ said.