Pinehurst police officer retires after 36 years