Iran confirmed a report on Sunday that it executed Shahram Amiri, a nuclear scientist who gave the United States intelligence about the country's nuclear program.