Authorities said the gun was connected to the shooting through the National Integrated Ballistic Information Network.