MONTREAL (AP) _ An Egyptian man arrested earlier this month in connection to a cache of explosives and telephone threat to bomb the Israeli consulate in Montreal was granted bail Thursday.

Police found explosives in the apartment of Tarek Adealy Khafagy, 30, and arrested him on March 4. A judge ruled Thursday that prosecutors failed to prove Khafagy should remain in custody and set bail at $3,425.

Khafagy, who has insisted he knew nothing about the explosives or the telephone threat, will need a few days to raise the bail money, said his lawyer, Georges Jabbouri. Khafagy, a refugee, speaks little English or French.

Jabbouri argued during a bail hearing Tuesday that his client had been framed by Ayman Bondok, 23, a Canadian of Egyptian descent who provided the tip that led police to Khafagy's apartment.

Police have arrested Bondok and a third suspect, Kim St. Louis, 31, both of whom Khafagi allowed to stay in his apartment while he worked the overnight shift at a bakery.

Police said they believe it was Bondok who made the telephone threat to bomb the Israeli consulate if Israel refused to release Lebanese prisoners. A police investigator testified that claims by Bondok that Khafagy belonged to a Palestinian terrorist group were not credible.

In a statement to police, St. Louis, who has been freed on bail, said Bondok may have wanted to get Khafagy deported because of a feud between their families in Egypt.

Bondok remains detained without bail. All three are charged with illegal possession of explosives. Bondok is also accused of extortion.