A newly released video reveals a possible motive in the Ottawa attack that left one Canadian soldier dead.

Authorities say Michael Zehaf-Bibeau killed Cpl. Nathan Cirillo as he stood post at Canada’s National War Memorial. Then, they say Zehaf-Bibeau carjacked a vehicle and drove to the Parliament building, where he opened fire and was gunned down.

Police say Zehaf-Bibeau made a video on his cellphone right before the attack.

“This is in retaliation for Afghanistan and because Harper wants to send his troops to Iraq,” he said in the video. “So we are retaliating, the mujahedeen of this world. Canada’s officially become one of our enemies by fighting and bombing us and creating a lot of terror in our countries and killing us and killing our innocents.”

Royal Canadian Mounted Police debated whether or not to release the video, fearing it could be used to radicalize more young people. Ultimately, authorities decided that releasing the video was in the public’s interest.

Zehaf-Bibeau had Libyan and Canadian citizenship. Authorities believe that he was trying to join terror groups in the Middle East but couldn’t get his passport approved.

Watch the report above.

More stories on Fox News Insider:

'A Chilling Effect': Fla. Man Jailed in UAE for Facebook Posts Made on U.S. Soil

WATCH: Here's How You Can Survive an Emergency Landing

Dramatic Footage Captures Car Sliding Into Woman