The best thing to do is fight humour with humour, all you needed to do was laugh, look at him, and say "Next time that happens your testicles will be kicked to the back of your throat", then wink at him .... he'd shut up and stop, while the others laughed at him