It was caused by a failure to deter bad guys.
Even at their best, our agencies may not be able to detect operations with footprints as small as those left by September 11-type attacks.
The key is to go kill all the people likely to be inclined to pull off such attacks - you can never predict or detect everything they're going to do!
You forgot to insert (/sarcasm off).........didn't you?