I was thinking of a Neal Stephenson novel, I think it was Diamond Age, which had drones flying around specifically to take out other drones, which led to drones flying around to take out the counter drones, etc. It didn’t end well.
No, really, it was a Neal Stephenson novel, the ending was really abrubt and weird.