I had no idea what a petard was, until just now when I looked it up. Here's a pic:



It's an explosive used to destroy walls. How does the saying "hoisted by my own petard" make any sense?