South Yorkshire Fire and Rescue Service is forecasting a £3.7 million deficit over the next three years, as it faces rising costs and uncertainty over government funding.