Tsunamis triggered by a strong quake in the South Pacific have killed scores of people across a number of islands.