Iran will attack any country whose territory is used by so-called enemies of the Islamic state to launch a military strike against its soil, the deputy head of Iran's elite Revolutionary Guards told the semiofficial Fars news agency on Sunday.

Any spot used by the enemy for hostile operations against Iran will be subjected to retaliatory aggression by our armed forces, Hossein Salami said during military maneuvers.

The Revolutionary Guards began two-day ground exercises on Saturday as a show of military might as tension rises between Tehran and the West over Iran's disputed nuclear program.

Iranian media said it was a small-scale exercise in southern Iran.

The United States and Israel, Iran's archenemies, have not ruled out a military strike against the country should diplomacy fail to resolve the standoff. Iran says its nuclear program is purely peaceful, rather than aimed at developing weapons.

Iran has warned that its response to any such strike will be painful, threatening to target Israel as well as U.S. bases in the Persian Gulf region, along with closing the vital oil-shipping route of the Strait of Hormuz.

(Writing by Parisa Hafezi)