One of my college CS textbooks had an anecdote in it where the Australian military once had a bug in flight training software that ended with kangaroos in the simulation pulling out AK47s and RPGs to shoot down the helicopter pilot.
The story was meant to make a point about class inheritance. No idea of that ever actually happened and I assume it didn't, but it was a great thought experiment to make a point if nothing else.
In this case whether its a though experiment or an actual event during one simulation, the point is important and it shines a light on real world risks if and when AI is given direct control over UAVs.