Shah of Iran modernized his nation but vacillated in crisis