Earlier quoted context omitted.
Playing pretend is dangerous. Once these things are given legs and guns it might "regurgitate" by "pretending" to hunt and kill humans.
I think the real take away from you scenario is that guns are dangerous and just slapping them onto things willy nilly is not a great idea. Otherwise I think we can put your fear right behind "the AI learns magic and casts spells" in our risk assessment.
While I agree in principle,
1. There is a very large and entrenched industry in the US who's purpose can be summed up as "slapping guns onto things willy nilly."
2. The existence of cybersecurity as an exploding career field shows that internet packets are all that is needed to cause harm. Even if AI hacking skill is weak, thousands of sessions can be ran 24 hours a day and most companies still do not invest in security.