You can do the obvious things like stop bombing the living shit out of Middle East, etc. but that would only reduce the amount of radicalized people. The best you can do is to push it down below the "crazy noise floor" - because you ultimately can't prevent random people with a particularly destructive mental condition or an axe to grind from shooting people up. Not even if you turn the country into a police state.