Two completely different things. Even the UN acknowledges a people's right to resist occupation. 9/11 was condemned by practically all Islamic Scholars.
The first thing I wrote is that they are two very different things, meaning that no, the same logic cannot be used to justify it. It's quite obvious to say the least.