Toronto Police Chief Mark Saunders says a knife attack on two Canadian Armed Forces members on Monday in North York is being probed as a possible terror attack.

A 27-year-old man is in custody and the two victims were taken to hospital with non-life threatening injuries.

Police said they received a 911 call about a man waving a knife in the Yonge Street and Greenfield Avenue.

Saunders said the man walked into the Joseph Shepard Building located at 4900 Yonge St around 3:30 p.m. Monday, pulled out a knife and attacked a uniformed Canadian Forces member.

When they arrived, the man was being held down by other members of the Armed Forces.

Reports of a person w a knife, waving it around. Yonge St/Greenfield Ave. Units are responding — Toronto Police OPS (@TPSOperations) March 14, 2016

Saunders said the suspect made comments “which caused concern” during the unprovoked attack, and police are not ruling out terror at this time.

Toronto police are working with the RCMP, OPP, and CSIS to establish a motive.

Update: report that 6-8 males are holding the person w/ the knife down. 1 person was injured.^adc — Toronto Police OPS (@TPSOperations) March 14, 2016

Update: Units are OS, 1 person is in custody. @TorontoMedics also OS, treating person with injury to the arm.^adc — Toronto Police OPS (@TPSOperations) March 14, 2016

Saunders says charges against the 27-year-old are pending.

Anyone with information is being asked to contact police.

With files from The Canadian Press.