dar um tiro no pé

Etymology
lit. 'to give a shot in the foot'.

Verb

 * 1)  to shoot oneself in the foot