Used to happen all the time in Westerns. The good guy with the white hat disarms the bad guy in the black hat that way, or just shoots him in the arm.
Did he hit the Glock before or after the active murderer kill himself? If the officer hit the Glock before the active shooter shot himself, I wonder where he hit the Glock?