Place the following line
setElementParent(fire, wood)
between:
setPedAnimation (source,"BOMBER","BOM_Plant", -1, false, false, false, false)
-- <
setTimer(function()
When destroyElement(wood) is called, propagation is applied and the same function will be executed for it's children. Which is in this case the fire element.