Way to go! A strong clap to both ears at once also works perfectly
Seriously, talk to your sensei and this probably will stop him at least in dojo. Try not to be alone when you come and leave the dojo just for case. If this continues outside of dojo, talk to your parents and depending on his seriousness they may choose to call police. That should calm him down.