A magnitude 7.3 earthquake has struck off the coast of Vanuatu, with a warning of tsunami waves for some coasts in the South Pacific nation.