TEHRAN—Gunmen and suicide bombers struck Iran’s Parliament and the shrine of Ayatollah Ruhollah Khomeini on Wednesday, killing at least seven people in what officials called a rare terror attack in the country. Islamic State claimed responsibility for the attacks via a statement posted to its official Amaq news agency. It would be the Sunni Muslim terror group’s first attack in Shiite Iran. But the extent of the group’s…