A 5.0 magnitude earthquake hit the Republic of Northern Cyprus near the city of Famagusta on Thursday, the Disaster and Emergency Management Presidency (AFAD) said.