@laurie4321 Aside from what everyone else has said, I find one thing you can do is firmly take control of the child’s hands (but without hurting him) and calmly explain what he did was wrong, and you will not let him continue.
I think it’s important he gets immediate feedback that what he did...