A 6.2 magnitude earthquake hit the Pacific island nation of Vanuatu on Tuesday, the United States Geological Survey (USGS) said.