M
MDJ
As engineer54 mentioned a relay is the way, very straight forward, you want a 240 volt relay with a 24 volt dc coil, when the bells ring the relay coil is energised and the supply to the gas valve is broken, how you energise the coil is a matter of a couple of ways, via an alarm relay in the panel or by a sounder itself, the latter not so good as you may need a diode doing it this way to ensure the panel doesnt go into fault.