By the time you get to where the gun is locked up and get it unlocked, it will more than likely be too late.
At Columbine, there was a deputy sheriff in his car outside the school. It took him a while to respond, but when he did he traded fire with one of the killers. They exchanged about ten shots. I am thinking of a gun in the main office, with someone in that office able to use it. He/she would be a lot closer to the action than that deputy. Think of the analogy of a fire extinguisher.