Sheriff retires after 28 years