Solo - You'll need a second controller. You'll have to control the character who isn't attacking and make sure they don't die while you also move the other character to kill all of the enemies.
Multiplayer - Just don't attack and let the other person kill everyone.