Officials said the fire began accidentally in the engine compartment of one bus and spread to three other buses.