A Canadian soldier was killed and the nation's Parliament was on lockdown Wednesday after gunfire rang out in downtown Ottawa.