Police captain retires after 30-plus years of service