Sounds similar to one portion of Animatrix. A robot killed a human, i believe by accident, and he was tried for it. Then the other robots started following along and you know how it turned out
But when I get home, I'll check out the trailer for it. I think I heard about this movie at sometime before, but I dont think I saw a trailer for it.