Canada came to a standstill when a gunman killed a soldier outside a war memorial in Ottawa -- then stormed into parliament, sending lawmakers hiding behind barricaded doors.