langtrap

hoist by one's own petard

adj.
(idiomatic) Hurt or destroyed by one's own plot or device intended for another; "blown up by one's own bomb".