An earthquake measuring 4.8 on the Richter scale has shaken the holiday hotspot of Granada in Spain.