Had the FBI done its job, it would have never happened.
The FBI needs a housecleaning for sure, but they won’t be able to stop such incidents 100%. To have 100% security requires an armed vigilant public.
Bad guys can be armed too but it’s amazing how polite bad guys can be when they know John and Jane Q. Public are packing.