Black Mirror?
China's machine-gun-toting robo-dogs are not unique, nor is its approach to the binary beasts. the US military has explored the same idea and, like China, wants a human to pull the trigger rather than letting robot dogs with machine guns off the leash
https://www.theregister.com/2023/08/30/quadruped_dogs_gun_xm7/