Ecuador har utlyst nationellt nödläge på grund av oroligheterna.