An opposition politician in Venezuela has been shot to death at a rally in the run-up to parliamentary elections, his party said.