Fetching details from the dictionary...

to do someone in; to bump someone off
あいつをやるつもりだ。
I'm going to take him out.
やられる前にやるしかなかった。
I had no choice but to get him before he got me.
仲間がやられたと聞いて駆けつけました。
I rushed over when I heard my comrade had been taken out.