The provisions of this subdivision shall apply in all cases where members of the fire department are acting under the authority and direction of the chief or other legally authorized officer of the fire department of the town or city.