The shallow quake hit 90 kilometres (56 miles) southeast of the village of Pangai, with warnings also extending to the island nation of Niue.