Amarnath attacker killed in J&K encounter