Canadian police backed by armored vehicles surrounded parliament in Ottawa on Wednesday after a soldier was shot while guarding a nearby monument.