Baghdad, Iraq (CNN) -- An Iraqi soldier opened fire Tuesday on a group of U.S. soldiers in northern Iraq, killing two and wounding nine others, the U.S. military and the Iraqi military said. They are the first American deaths in Iraq since the U.S. combat mission officially ended last week. The attack occurred inside an Iraqi army commando compound when the soldier, clad in an Iraqi army uniform, fired on the U.S. soldiers near the Salaheddin province city of Tuz, the U.S. military said. The attacker was shot and killed. Maj. Gen. Mohammed al-Askari, a Defense Ministry spokesman, identified the shooter as Soran Rahman, from the Iraqi army's 4th Division.
@highlight
NEW: U.S. military says an Iraqi soldier shot Americans
@highlight
A separate attack wounded another U.S. soldier, Iraqis, official says
@highlight
In first attack, 9 also wounded inside an Iraqi army commando compound near Tuz
@highlight
The attacker was shot and killed
Al-Askari said Rahman got into a fight with @placeholder soldiers, and then pulled his weapon and fired on them before he was shot dead.