Extinguishing with foam