A US defence contractor was killed and several American and Iraqi troops were wounded Friday in a rocket attack in northern Iraq, US officials said.

According to reports, the attack involved as many as 30 rockets fired at the Iraqi military compound near Kirkuk, where US service members are also based.

Officials did not provide the exact number of troops wounded in the attack or the severity of the injuries.

They spoke on condition of anonymity to describe details before they were made public.

Such attacks have taken place on several occasions over the past few months, with US officials for the most part blaming Iran-backed fighters.

Iraq protests: Death toll soars as live rounds and tear gasfire Show all 17 1 /17 Iraq protests: Death toll soars as live rounds and tear gasfire Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi protesters take cover behind a barricade on Al-Jumhuriya Bridge during an anti-government demonstration in the Iraqi capital Baghdad on 25 October, 2019. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Protesters push down concrete walls during a protest over corruption, lack of jobs, and poor services, in Baghdad. Reuters Iraq protests: Death toll soars as live rounds and tear gasfire Anti-government protesters try to break into the provincial council building during a demonstration in Basra. AP Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi women protesters march with national flags during an anti-government demonstration in the central holy shrine city of Najaf. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire An Iraqi protester uses a mobile phone to take a selfie photo with an army soldier standing atop a humvee during a demonstration outside the local government headquarters in the southern city of Basra. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi protesters gather during an anti-government demonstration at the burning local government headquarters in Nasiriyah, the capital of Iraq's southern province of Dhi Qar. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi protesters wave a national flag as they stand atop the gatehouse to the local government headquarters in the southern city of Basra. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire An Iraqi protester throws back a tear gas canister fired by security forces amid clashes during an anti-government demonstration in Baghdad. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi protesters carry away an injured protester following clashes during an anti-government demonstration in Baghdad. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi security forces stand guard on Al-Jumhuriya Bridge during an anti-government demonstration in Baghdad. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Anti-government protesters gather in Tahrir Square during a demonstration in central Baghdad. AP Iraq protests: Death toll soars as live rounds and tear gasfire The burning local government headquarters in Nasiriyah, the capital of Iraq's southern province of Dhi Qar. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Protesters take cover behind a concrete barricade during a demonstration in Baghdad. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi paramedics help injured protesters in Baghdad. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Iraqi protesters gather in Baghdad. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire An Iraqi protester takes cover between concrete barricades in Baghdad. AFP/Getty Iraq protests: Death toll soars as live rounds and tear gasfire Protesters take cover from teargas canisters fired by security forces in Baghdad. AFP/Getty

Colonel Myles Caggins, a spokesman for the US-led coalition fighting Isis forces in Iraq and Syria, said Iraqi security forces were leading the investigation and response to the attack.

Iraq has been roiled since 1 October by protests that have left more than 450 people dead, the vast majority of them demonstrators killed by security forces firing tear gas and live ammunition.

The mass uprisings prompted the resignation of former Prime Minister Adel Abdul-Mahdi late last month.