A soldier who was shot at a war memorial at the start of an attack by one or more gunmen on Canada's parliament has died of his wounds, a government minister said.