in 8 Direction? I can't, because I need the enemy to move in the opposite direction of the attack, and the attack could come in any direction. Unless I'm wrong, vector X or Y only lets you move in specific directions.
When your character hits an enemy, you need to find the angle between the enemy and the character, then move the enemy 180 degrees from that angle.
I've never used the 8 direction behaviour, so the logic may need some tweaking based on it's properties. Sorry, I'm not at home so I can't work out a more elegant solution for you.