A tsunami warning has been issued after the earthquake as residents are urged to flee the coast of Fukushima.