U.S. military officials in Iraq say at least 21 Iraqis have been killed in three attacks north of Baghdad .