No group has claimed responsibility for the attack, but early intelligence reportedly suggests the Islamic State was responsible.

The attack on U.S. troops in Iraq is the first to inflict casualties since the fall of Syrian President Bashar Assad a year ago.

Three other service members were injured in the attack, during which the gunman was "engaged and killed", according to the US military.