It stemmed from an investigation into illegal shooting, police say.