In a referendum on Sunday, Ecuadorians rejected a proposal to return a foreign military presence to their country.