a device contrived to
hurt another person; boobytrap; an
explosive contraption used in warfare to blow in a door or form a breach in a
wall.
to "hoist by one's own petard" means you have been
hurt or caught by the very device that you intended to
hurt someone else. This phrase is often used mockingly, as if to say that you stepped in your own
mess.