That likely would not be exactly how it plays out. It would be a rogue or misaligned AI that the companies completely lose control of or that a different actor evilly misuses.
But, yes, there should probably be laws that make it so if you summon a demon that causes a mass casualty event you face criminal penalties.