The main accused in the attack on police and a magistrate during an unauthorised rally in Odisha has been arrested after months of evasion.