The takeover came shortly after the Islamic Revolution led by Ayatollah Ruhollah Khomeini that toppled the Shah of Iran .