When you attack, you're doing all damage/effects of that attack first. THEN you check to see if any Pokemon were knocked out. So the damage would be done to Manectric, and you couldn't do any to their bench, and only after that is when Manectric is knocked out.