MONTREAL -- A man is facing terrorism-related charges after allegedly attempting to break into RCMP headquarters in Montreal.

Sidy Mouhamoud Keita, 19, was arraigned on Wednesday and will remain detained pending a bail hearing Thursday.

He allegedly attempted to jump over a fence at the RCMP building on Tuesday and was arrested on the spot.

He was charged with breaking and entering, with authorities fearing he may commit a terrorist act.

A Criminal Code provision allows police to arrest someone on the grounds they believe a person may commit a terrorist offence.

The accused also faces a charge of harassment.