Accused killed in encounter