Police shoot man after stabbing rampage in Sydney