Fernando Villavicencio, a member of the country's national assembly, was attacked as he left the event in the capital, Quito, on Wednesday.
A state of emergency has been declared following the assassination.
A member of his campaign team told local media the 59-year-old was getting into a car when a man stepped forward and shot him in the head.