Clearly different circumstances however Spain, France, Germany, Norway all invaded Afghanistan, and Spain and Norway also invaded Iraq. Perhaps not as a direct response, though.
To your second point, it's clearly a very complicated blame game, but trying to distill it down to fit your own point is not helpful. We can easily follow the chain of events backwards - for example had the USSR not invaded Afghanistan, this might have all been avoided.
Certainly the trigger point was the Taliban refusing to hand over Bin Laden, thus providing a safe haven for him and other like minded folk.
This all seems to be besides my original point, which was that terror attacks clearly cost far more than the lives of the people killed, and so arguing that the benefit of the NSA is minimal by considering only a tiny fragment of its potential benefit is fallacious.