Police said an investigation was continuing, but did not confirm earlier reports that more gunmen were involved. Heavily armed officers backed by armored vehicles sealed off the building.
There was no immediate word on the gunman’s motivation, but the attack came a day after an alleged Islamist drove over and killed another soldier in what authorities branded a terrorist attack.
Authorities had raised the security threat level from low to medium after the car attack, which came as Canadian jets were to join the US-led air armada bombarding Islamist militants in Iraq.
Prime Minister Stephen Harper warned that “facts are still being gathered” but nevertheless “condemned this despicable attack.”
“One shooting victim succumbed to injuries. He was a member of the Canadian forces. Our thoughts and prayers are with his loved ones,” the Ottawa Police and Royal Canadian Mounted Police said.
“One male suspect has also been confirmed as deceased,” they said, in a joint statement, calling on witnesses to come forward and for residents to stay clear of Ottawa’s downtown area.
Later, a police spokesman said two people received “minor injuries” in the incident, but refused to say whether more gunmen could be at large or what might have triggered the attack.
“We’re still investigating the active operation. We’re in the process right now,” he said.
Lawmakers, staff and reporters evacuated from the building spoke of intense gunfire in the historic building on Parliament Hill.
Video footage posted online by the Globe and Mail newspaper showed police ducking for cover as they advanced along a stone hallway, loud gunfire echoing among parliament’s stone columns.
– ‘Pop, pop, pop’ –
A member of parliament, Maurice Vellacott, told AFP that House of Commons security had told one of his aides that the suspect had been killed inside parliament.
“I literally had just taken off my jacket to go into caucus. I hear this ‘pop, pop, pop,’ possibly 10 shots, don’t really know,” Liberal Party member John McKay told reporters outside.
“Suddenly the security guards come rushing down the hallways and usher us all out to the back of the parliament buildings,” he said, as lawmakers, staff and reporters scurried from the area.
Witnesses at the scene said they saw a man armed with a rifle running into parliament after shooting a guard at the war memorial.
Passers-by told reporters that a bearded man had gunned down the soldier and hijacked a passing vehicle to take him the short distance to Parliament Hill, on a bluff over the Ottawa River.
One witness, parliamentary aide Marc-Andre Viau, said he saw a man run into a caucus meeting at the parliament, chased by police armed with rifles who yelled “take cover.”
That was followed by “10, 15, maybe 20 shots,” possibly from an automatic weapon, he said. “I’m shaken,” said Viau.
Police raced to seal off the parliament building and Harper’s office, pushing reporters and bystanders back and blocking roads.
Harper — who was attending a meeting with lawmakers in parliament at the time — left the area of the shooting and was “safe,” his spokesman Jason MacDonald said.
– Jihadist sympathies –
In Canada’s southern neighbor the United States, President Barack Obama condemned the attack as “outrageous” after talking by telephone with Harper, the White House said. An official said US and Canadian air defenses were on alert.
The US embassy in Ottawa was placed on lockdown.
The incident came a day after 25-year-old Martin Couture-Rouleau ran over a soldier, killing him before being shot dead by police as he emerged from his wrecked car wielding a knife.
The government branded this a terrorist attack by a suspected Islamist, amid reports that Couture-Rouleau was a supporter of the so-called Islamic State, a jihadist group operating in Iraq and Syria.
If the driver’s alleged jihadist sympathies are confirmed, it would be Canada’s first-ever Islamist attack, although authorities have warned they are tracking 90 suspected extremists already in the country.
The government said the heightened threat level “means intelligence has indicated that an individual or group within Canada or abroad has the intent and capability to commit an act of terrorism.”
After the incident, much of downtown Ottawa remained on lockdown and heavily armed officers from Ottawa Police and the Mounties continued to patrol the area- AFP