The main accused in the March 28 murder of 'karseva' chief of Uttarakhand's Nanakmatta Gurdwara, Baba Tarsem Singh, was killed in an encounter with the state Special Task Force (STF) in the Bhagwanpur area of Haridwar in the early hours of Tuesday, police said.