A rocket attack targeting U.S. personnel housed at a base in Iraq’s western desert injured several American troops late on Monday, according to U.S. defense officials.

The attack on Ain al Asad Air Base resembled previous ones carried out by Iran-backed Iraqi armed groups, which have targeted the base repeatedly over the past several years but intensified their attacks after Israel’s war with Hamas in Gaza began in October.

The latest attack involved at least two rockets that hit inside the base’s perimeter, according to a U.S. official and Iraqi witnesses near the site of the attack. The base had been targeted at least twice in the past three weeks, and there was also an attack late last month on a small U.S. base in eastern Syria where U.S. special operation forces work with Syrian Kurdish troops to tamp down the Islamic State.

Initial reports were that at least five people were injured in Monday’s attack and that the wounded included both U.S. troops and contractors.

The attack comes as tensions are running especially high in the region, with Israel and its American, European and regional allies bracing for a reprisal attack from Iran in response to the killings last week of a Hamas leader, Ismail Haniyeh, in Tehran, and a Hezbollah leader, Fuad Shukr, in the southern suburbs of Beirut.

Israel has said it carried out the attack on Mr. Shukr but has said nothing about the one in Iran. Iranian officials and Hamas have said that Israel was responsible for Mr. Haniyeh’s killing.