Keep running from him until you get the chance to hit the ghost holding the hourglass. Connect with that one and Boom Boo collapses into a shadow.
Dig him out of the ground and hit him until he swells back to normal size, then repeat the whole sequence. A few cycles of that and he's finished.