Halifax firm fined over explosion at primary school