A major offshore earthquake near Mindanao has killed one and triggered tsunami warnings.