Officials in Iraq say two attacks targeting the country's military have killed nine people.

The deadliest attack struck Diyala province, west of the capital. A police official says militants with the Islamic State group targeted an Iraqi army checkpoint in the town of Mansouriya, killing four people and wounding 14.

A second attack hit Tarmiyah, a town 30 miles (50 kilometers) north of Baghdad. Another police official says a roadside bomb targeting an Iraqi military convoy there killed at least five people. The official says three of those killed were civilians and two were soldiers, while eight people were wounded.

Hospital officials confirmed the casualties. All spoke on the condition of anonymity because they were not authorized to speak with journalists.