An earthquake of magnitude 6.1 struck the Vanuatu islands on Wednesday, the German Research Center for Geosciences (GFZ) said.