LONDON — Iran has carried out secret tests of nuclear-capable missiles, British foreign secretary William Hague said Wednesday.

Iran is conducting 10 days of war games, which included the public testing Tuesday of a new, medium-range missile which a Revolutionary Guards commander warned was capable of hitting US bases in Afghanistan and other military assets in the Middle East.

Hague accused Tehran of using the public tests as cover for testing missiles capable of carrying a nuclear payload.

“Iran has also been carrying out covert ballistic missile tests and rocket launches, including testing missiles capable of delivering a nuclear payload in contravention of UN resolution 1929,” Hague told lawmakers.

Tehran also “announced that it intends to triple its capacity to produce 20 percent enriched uranium. These are enrichment levels far greater than is needed for peaceful nuclear energy,” Hague said.

Britain would “maintain and continue to increase pressure on Iran to negotiate an agreement on their nuclear program,” Hague said.

The US accused Iran of “bragging” about its military threat after it tested 14 missiles Tuesday.

“Iran, rather than getting itself back in the good graces of the international community … seems to be bragging about its capabilities, conducting secret programs, parading new missiles in front of the press,” State Department spokeswoman Victoria Nuland said. “So that’s not taking us in the direction that we want to go with Iran.”