No, because the Taliban did not orchestrate 9/11. Al Queda did. Furthermore, if the Taliban would have handed over Osama Bin Laden we would not have invaded them. Prior to the debacle we were actually friendly with the Taliban. You could call the attack a preemptive strike from Al Queda if you wish, but you should note they would not make that claim. They claim the attack was in response to our presence in the middle east and our support of Israel.
Your comparison is fatally flawed. The government of Iran wants Israel destroyed, not a terrorist group within Iran. Their president made those statements. This is a matter of public record. When you openly state in the digital age that you want to wipe a country off the map, people take notice. And if said statements are about Israel, they do not just take notice, they take action.