Police were preparing for active shooter training when an officer heard a gunshot, then made a “tragic” discovery.