A fictional variant of this story also shows up in Peter Watts' novel Starfish.
In that version, the neural net is trained to manage the ventilation system of an underground train station, based on data about passenger movements. Unfortunately, it ends up simply paying attention to the display of a clock that happens to be visible through one of its cameras. And when the clock breaks, a bunch of people asphyxiate. A bit implausible, but memorable.