He was accused of possessing 23,000 sexually explicit photos of children, and he died from his injuries at a hospital.