By-elections marked with minor scuffles, ECP code of conduct violations