A South Beloit man has been sentenced to 8 years in prison for a shooting that resulted in the death of a 10-year-old in 2023.