Pakistan's army has been ordered to "shoot on sight" after clashes with demonstrators killed four soldiers and at least one protester, according to reports.