 This is allowed because it is indirect and because the fire might not extinguish.There is a rule that "Grama benizakin patur".If somebody caused financial harm to somebody else via an action that was not guaranteed to harm them, the person cannot be forced by a court to pay, although he might be morally obligated to.