Two Iowa National Guard soldiers were killed in a shooting in Syria blamed on Islamic State, as US officials vow retaliation and investigate security failures.