TEHRAN, Iran — Russia has stopped using an Iranian air base for launching airstrikes on Syria for the time being, Iran’s Foreign Ministry spokesman said Monday, just hours after the Iranian defense minister criticized Moscow for having a “kind of show-off and ungentlemanly” attitude by publicizing their actions.

Moscow, which used the Shahid Nojeh Air Base to refuel its bombers striking Syria at least three times last week, confirmed that all Russian warplanes that were based in Iran have returned to Russia.

A statement issued by the Russian Defense Ministry said Monday that as long as Iran agreed, Russia could use the Iranian air base again, “depending on the situation” in Syria.

Iranian Foreign Ministry spokesman Bahram Ghasemi told reporters in Tehran that the Russian airstrikes on militants in Syria were “temporary, based on a Russian request.”

“It is finished, for now,” Ghasemi said, without elaborating.

Last week, Russia announced it used the airfield, located some 31 miles north of the Iranian city of Hamedan. Iranian officials only confirmed Russia’s presence a day later.

Earlier Monday, state TV quoted Iran’s defense minister as saying that Russia “will use the base for a very short and fixed span.”

The comments by Gen. Hossein Dehghan came after he chastised parliament this weekend for asking questions about Russia using the base.

Responding to a question about why Iran didn’t initially announce Russia’s presence at the airfield, Dehghan appeared prickly on the state TV broadcast.

“Russians are interested to show they are a superpower to guarantee their share in political future of Syria and, of course, there has been a kind of show-off and ungentlemanly (attitude) in this field,” he said.

Dehghan’s remarks also suggest Russia and Iran initially agreed to keep Moscow’s use of the air base quiet. Its announcement likely worried Iran’s Sunni-ruled Mideast neighbors, which host American military personnel.