Updated

Canadian immigration officials have arrested a Pakistani man who they say was plotting to attack the U.S. consulate and other buildings in Toronto's financial district.

The Immigration and Refugee Board of Canada said at a hearing Wednesday that Jhanzab Malik told an undercover police officer about his plan to build remote controlled bombs to blow up the U.S. consulate and other buildings.

The board says he is a self-proclaimed supporter of the Islamic State and al-Qaida and told the officer that he attended training camps in Libya.

Malik, who came to Canada as a student in 2004, was arrested Monday.

The Canadian government is looking to deport him. It wasn't clear why he hasn't been charged. He has been ordered detained.