The U.S. Central Command has confirmed that an attack was carried out on Iran.