An earthquake of magnitude 6 struck off Port Vila, the capital of the Pacific Ocean island nation of Vanuatu, the United States Geological Survey said on Tuesday.