Officials in Indonesia, Philippines and Japan warn of tsunami waves after quake off Mindanao.