Parliament orders inquiry into how rebellion caught SA's sec