A 7.4 magnitude earthquake off north-eastern Japan near Fukushima prefecture has prompted a tsunami warning of possible 10ft waves.