Fire department captain retires after 30 years