The ballistic missile launches came days after Pyongyang had warned of "terrible consequences" over US-South Korea joint military drills.