A U.S. judge has ordered the release of a Cuban-born former U.S. intelligence operative from jail as he awaits trial on immigration fraud charges.

The federal judge in the southern U.S. state of Texas ordered Luis Posada Carriles released on a $350,000 bond Friday. But the judge said Posada must remain confined to his home in the southern U.S. city of Miami and submit to electronic monitoring.

Federal prosecutors immediately requested he remain jailed while they determine if they can appeal the decision. If released, Posada could also be arrested by immigration officials who have a deportation order for him.

Posada has been in U.S. custody since 2005, when he was arrested on charges that he illegally entered the country. He is wanted in Cuba and Venezuela on charges of involvement in the deadly bombing of a Cuban jetliner in 1976. Both countries have accused the United States of protecting a terrorist.

A U.S. immigration judge had ruled that Posada be deported. But the judge ordered that Posada not be sent to Cuba, where he was born, or Venezuela, where he is a naturalized citizen, because of fears he could be tortured.

Posada has denied any wrongdoing.

Some information for this report was provided by AFP and AP.