For weeks, Iranians had been nervously anticipating another attack by the United States and Israel, despite Tehran and Washington holding negotiations aimed at averting a violent showdown.