North Korea says it tested two types of strategic cruise missiles from submarines toward the Sea of Japan. State media released photos showing a missile flying over the sea.