The earthquake has set off tsunami warnings in the neighbouring countries of Japan and the Philippines.