If you just smash it with a hammerfist, it can't do anything. It will be scary, but you can win with a quick but decisive crushing blow to the arachnid's abdomen. This will disable it, causing it to fall off the wall and become vulnerable to a shinobi deathblow.