Iran’s leaders may have hesitated at the start of the recent demonstrations, but the violent reaction that followed bespeaks a confident regime.