MOSCOW (Reuters) - Russia and China accused the United States on Tuesday of stoking military tensions by testing a ground-launched cruise missile, but the foreign ministry in Moscow said it would not be drawn into an arms race.

A conventionally configured ground-launched cruise missile is launched by the U.S. Department of Defense (DOD) during a test to inform development of future intermediate-range capabilities at San Nicolas Island, California, U.S., August 18, 2019. Scott Howe/U.S. Dept of Defense/Handout via REUTERS

The Pentagon said on Monday it had tested a conventionally-configured cruise missile that hit its target after more than 500 km (310 miles) of flight, its first such test since the demise of a landmark nuclear pact this month.

The United States formally withdrew from the Cold War-era Intermediate-Range Nuclear Forces Treaty (INF) with Russia on Aug. 2 after accusing Moscow of violating it, a charge dismissed by the Kremlin.

The text would have been banned under the INF, which prohibited land-based missiles with a range of between 310 and 3,400 miles, reducing the ability of both countries to launch a nuclear strike at short notice.

Washington had “obviously taken the course of escalating military tensions,” Russian Deputy Foreign Minister Sergei Ryabkov said

Russia would, however, not allow itself “to be pulled into a costly arms race” and did not plan to deploy new missiles unless the United States did so first, he was quoted as saying by TASS news agency.

The Kremlin said the U.S. missile test showed that Washington had long been preparing to exit the nuclear pact.

“It is simply not possible to prepare for such tests in a few weeks or a few months. This ...shows that it was not Russia, but the United States with its actions that brought the breakdown of the INF,” Kremlin spokesman Dmitry Peskov said.

China also expressed concern.

In Beijing, Chinese Foreign Ministry spokesman Geng Shuang said the test showed the United States was stoking a new arms race and confrontation, which would have a serious negative impact on regional and global security.

“We advise the U.S. side to abandon outdated notions of Cold War thinking and zero-sum games, and exercise restraint in developing arms,” Geng told a daily news briefing.