salir el tiro por la culata

Etymology
lit. 'have the shot come out of the (rifle) butt'.

Verb

 * 1)  to backfire