Canada's BlackBerry Ltd , posted a surprise 6% rise in quarterly revenue on Thursday, as sales of its security software product rose and its patent licensing business strengthened.