Wanna bet that thumping him in the forehead will just make him want to tickle you more?
Sometimes us guys are thick - you might want to get one of those joke pens that deliver an electric shock when you depress the button on top, and just zap his arm that's tickling you. Two or three times of that, and he'll stop (or only tickle you when you are nude!).