North Korea fired two nuclear capable cruise missiles from a submarine while the US and South Korea started joint military drills.