Military strikes on Afghanistan will not prevent something this terrible from happening again, for the simple reason that bombs will not deter people who are unafraid of death and desire martyrdom.
If you look at the current Mosul campaign against ISIL, for example the few thousand troops that we have there to support that effort allows the Iraqi military to move forward in an effective way.