The United States has carried out an air strike on the Islamic State near Baghdad, a US official said Monday, the first time the US has targeted the militants close to the Iraqi capital.