A man has been sentenced to 15 years in prison after pleading guilty in the shooting death of another man two years ago.