JERUSALEM, Apr. 11 (Reuters) - Russia, Germany and Britain on Thursday urged countries in the Middle East to show restraint and Israel said it was preparing to "meet all its security needs" in a region on edge over an Iranian threat to strike Israel.

The German airline Lufthansa, one of only two Western carriers flying to Tehran, extended a suspension of its flights to the Iranian capital and Russia warned against travel to the Middle East.

Iran has vowed revenge for the April 1 airstrike on its embassy compound in Damascus that killed a top Iranian general and six other Iranian military officers, ratcheting up tension in a region already strained by the Gaza war.

Israel has not claimed responsibility for the attack, but Iranian Supreme Leader Ayatollah Ali Khamenei said on Wednesday Israel "must be punished and it shall be", saying it was tantamount to an attack on Iranian soil.

The "imperative for Iran to punish this rogue regime" might have been avoided had the U.N. Security Council condemned the strike and brought the perpetrators to justice, Tehran's mission to the United Nations said on Thursday.

Prime Minister Benjamin Netanyahu said Israel was keeping up its war in Gaza but making security preparations elsewhere.

"Whoever harms us, we will harm them. We are prepared to meet all of the security needs of the State of Israel, both defensively and offensively," he said in comments released following a visit to an air force base.

Iran has signalled to Washington that it will respond to Israel's attack in a way that aims to avoid major escalation and it will not act hastily, Iranian sources said.

Israeli Defence Minister Yoav Gallant told U.S. Secretary of Defense Lloyd Austin that Israel would respond directly to any attack by Iran, Gallant's office said.

Conflict has spread across the Middle East since the eruption of the Gaza war, with Iran-backed groups declaring support for the Palestinians waging attacks from Lebanon, Yemen and Iraq. Tehran has avoided direct confrontation with Israel or the United States, while declaring support for its allies.

German Foreign Minister Annalena Baerbock called on her Iranian counterpart Hossein Amirabdollahian to urge "maximum restraint" to avoid further escalation.

Russia's foreign ministry told citizens they should not travel to the Middle East, especially to Israel, Lebanon and the Palestinian territories.

"Right now it's very important for everyone to maintain restraint so as not to lead to a complete destabilisation of the situation in the region, which doesn't exactly shine with stability and predictability," Kremlin spokesman Dmitry Peskov told a news briefing.

Photo from Reuters