Trying to find the original story (I read it in Russian translation, original was most likely English unless it was Lem).
The story plot had artificial birds designed to serve as cops. The birds started attacking humans who were percieved as being aggressive towards anything alive. So they created more advanced birds to protect against the first ones. This worked for a while until the second kind started attacking humans as well. It ended with the idea that they would need another generation to attack the second-generation birds.
The story wasn't very long. I read it a while back (mid-1980s, which means the original was written even earlier, probably before 1980).
Despite a somewhat Asimov-like "misbehaving robots" topic, I'm pretty sure it wasn't Asimov.