Petard

http://en.wikipedia.org/wiki/Petard
The word petard comes from the Middle French peter, to break wind…The word remains in modern usage in the phrase hoist with one’s own petard, which means ‘to be harmed by one’s own plan to harm someone else’ or ‘to fall into one’s own trap,’ literally implying that one could be lifted up (hoist, or blown upward) by one’s own bomb.”
He who smelt it, dealt it.