shoot yourself in the foot搬起石头砸自己的脚
My idiot cousin, the kaiser, has finally shot himself in the foot.