Bandit killed in encounter