A fourth man arrested by police investigating the alleged Ottawa-based terrorism cell was ordered released on bail Saturday — but was then rearrested immediately on a new charge.

The man was detained in Ottawa on Friday but the RCMP didn't have enough evidence to lay terrorism-related charges. Instead, he was kept in jail on charges of domestic assault and uttering threats, charges not related to any alleged terrorist conspiracy.

The man appeared in court Saturday, shackled, and was ordered released on $4,000 bond. But before he left the courthouse, he was arrested again.

"Well, we went upstairs to await his release … and we were informed that a new charge was being laid," said the man's lawyer, Richard Morris.

This time the man was charged with uttering threats, a charge that again was not related to alleged terrorism. "He'll be back in court [Sunday] to deal with that allegation," Morris said.

Family members who expected the man to be released Saturday and were angry at the development, Morris said. It was unclear how long this man would remain in custody.

The arrest followed terrorism charges levelled against three other men — two from Ottawa and one from London, Ont. — who are accused of planning terrorist bomb attacks against targets in Canada.

RCMP Sgt. Marc Menard earlier confirmed that the fourth arrest was part of the terrorism investigation that began last September, known as Project Samossa.

Police said that during raids they seized 50 circuit boards intended for use in remotely detonated bombs.

One of the three suspects made a brief court appearance Friday.

Khurram Syed Sher, 28, a Montreal-born pathologist living in London, Ont., is charged with conspiracy to facilitate terrorist activity.

The Ottawa men allegedly involved in the plot — Hiva Alizadeh, 30, and Misbahuddin Ahmed, 26 — had appeared in court Thursday.

All three are Canadians and remain in custody.

Police alleged this week that the three suspects had been working together since February 2008 and were plotting to "knowingly facilitate terrorist activities" in Canada and abroad.

Police said the plot ranged from Canada to Iran, Afghanistan, Dubai and Pakistan, but they did not elaborate.

Investigators said they moved in on the men to prevent them from sending money to terrorist groups in Afghanistan.

Ahmed is an X-ray technician at an Ottawa hospital. Alizadeh studied English as an additional language and electrical engineering technology at Red River College in Winnipeg.

With files from The Canadian Press