An earthquake of magnitude 5.48 struck South Africa on Sunday, the German Research Center for Geosciences (GFZ) said.