@mister kitten,
We cannot assume something should be deserved without knowing the specifics of the particular case, in my opinion. Many factors, as jgweed noted, play a role in the determination. If the child was mentally disabled and could not understand the concepts of right or wrong, I would not say the child deserved punishment. I, like DT, think that punishment should be issued if it can provide a learning experience (in this case, to not throw bricks at others). If punishment is issued to a child who will not be able to reap the learning experience that the punishment can provide, what is the point of issuing the punishment? It would seem if I issued a punishment to a child who couldn't, for whatever reason, understand the concepts of right or wrong, I would be issuing the punishment to satisfy myself, not to improve the child's character. This would be selfish and would only hurt the child further.