The first American soldier in the US-led battle against Islamic State was killed in Baghdad, the Pentagon said on Saturday.