There were some scary moments at a Gatineau elementary school Tuesday after a man apparently entered a classroom armed with a rifle, forcing the school into lockdown.

Police say the man walked into Ecole St. Laurent in the Buckingham sector of Gatineau armed with a gun just after 2 p.m.

A girl in Grade 2 told CTV Ottawa the man came into her classroom. She said she was scared and nobody in her class knew the man.

The school, which teaches students from Grades 1 to 6, was put under temporary lockdown.

When police arrived, the man was arrested without incident. No injuries were reported.

Police say they don't know why the man chose that school, or what his motives were.

Police are continuing their investigation.