Canadian PM Stephen Harper has said his country “will never be intimidated” after a deadly attack near the national parliament in the capital Ottawa, the BBC reports.
He pledged to “redouble our efforts” in fighting “terrorist” groups.
Earlier a gunman killed a soldier at an Ottawa war memorial, before dying in a shootout with police inside parliament.
This came hours after Canada raised its terror threat level. On Monday, another soldier was killed in a hit-and-run attack by a Muslim convert in Quebec.
Canadian security sources later identified the gunman in Wednesday’s shootings as Michael Zehaf-Bibeau, a Muslim convert in his early 30s.
He was recently designated as a “high-risk traveller” and had his passport taken away because of suspected jihadist sympathies, the BBC’s Nick Bryant in Ottawa says.
Earlier this month, Canada announced plans to join the US-led campaign of air strikes against Islamic State (IS) militants in Iraq.
However there is no official confirmation that any of this week’s attacks are linked to IS or the new military campaign.