U.S. military officials say the five , who were detained in January , were helping militants in Iraq fight against U.S. and Iraqi forces .