Ecuadorian government, indigenous groups reach deal to end protests