A tsunami warning has been issued across several countries after a 7.4 magnitude earthquake struck off the coast of the Philippines.