Iran judiciary chief says swift punishment of protesters is a deterrent