A man accused in a deadly 2021 shooting will spend more than a decade in prison after he changed his plea to guilty.