SEOUL, South Korea — South Korea successfully test-fired its first ballistic missile on Wednesday with a range far enough to hit any part of North Korea, Defense Ministry officials said.

With President Park Geun-hye watching, two missiles blasted off from a test site on the west coast of South Korea. The government released a photograph of a missile being fired from a tube mounted on what appeared to be a vehicle, suggesting that the model tested was a prototype for a mobile missile system.

South Korea has been developing a new ballistic missile since the United States agreed in 2012 to allow it to extend the range of those arms up to 800 kilometers, or about 500 miles, enough to reach any target in North Korea but not to threaten China or Japan.

Until then, mutually agreed-upon guidelines had barred South Korea from deploying ballistic missiles with a range of more than 185 miles and a payload of more than 500 kilograms, or 1,100 pounds.