An Ecuadorian presidential candidate known for speaking up against corruption has been shot and killed at a political rally in the capital, an attack that comes amid a wave of startling violence in the South American country.