A powerful earthquake off Mindanao, Philippines, triggered tsunami warnings for several countries, causing casualties and structural damage.