Almost all members of the country's cabinet resigned as thousands defied a government-imposed curfew.