Here is the code:
code_language.skript:
loop players except the attacker in radius 5 around the attacker:
damage loop-player by damage