A reported shooting and harassment complaint led investigators to uncover the child sexual abuse material, police say.