Cop allegedly kept a gun that was turned into police