It's nothing to do with Iran being bad or good. US and Iran were negotiating. You don't attack mid negotiation when you're supposedly still trying to fix things by talking.
You might think Iran isn't owed the courtesy of fair negotiation but that's very shortsighted. Next country will not take US's negotiations seriously and will be, frankly, at some level justified in shooting first.
> Next country will not take US's negotiations seriously and will be, frankly, at some level justified in shooting first
Then they get levelled. Forgetting that America is a superpower is one way that Iran's negotiators, if they were engaging in good faith, fucked up on.