The cop followed police protocol for a violent suspect.Yes, it would have hurt. However, the cop let emotions get the best of him.
There is not logical reason to tase a little girl unless she is waving a loaded gun around.
If that was the case, she would have been shot, not tazed.