Solution 1:

You cannot undo any commands in Minecraft. /kill @e is a command therefore it cannot be undone.