Hoisted by their own petard.
I think in this case the whole phrase would be more appropriate.
“For ‘tis the sport to have the enginer(sic) Hoist with his own petard;” Hamlet, Act 3, Scene 4