A U.S. military investigation has concluded that a suicide bomber wearing an Iraqi uniform carried out the deadly attack in a dining tent at an American base in Mosul last December , killing 22 people .