Seven of the U.S. soldiers were killed when their vehicle hit an improvised explosive device in Baghdad during a routine patrol .