Windsor man pleads guilty to lesser charge in death of his friend