Equip your ranged armour and bow prior to entering his crypt. Protect from magic is not necessary if you have a high magic defence. Search his sarcophagus and begin showering him with your arrows. Use the special attack at the beginning and end of the battle.
In the barrows mini-game if you don't kill Ahrim, you will not get an Ahrim piece.