Initial response to a fire, while it is still small enough to be easily extinguished, whether by water, an extinguisher, smothering with a blanket or sand or dirt.
HOWEVER, first raise the alarm and ensure all are safe. Identify the type of fire, and you MUST know the pros and cons of the methods listed above, as otherwise you make matters worse..
First you need to install a fire extinguishing system. If the fire happened, there must be a fire extinguisher and all modern methods to put it out. This https://www.americanbackflowprevention.com/fire-sprinkler-inspection.php presents new products in this area and they provide technical support 24/7.