BlackBerry Ltd. shares rose in the extended session Wednesday after the company announced it planned to spin off its Internet-of-Things business in...