Canada pledges to resettle Afghans, citing rising Taliban threat