A State Department official has been granted bond and will be free pending trial on charges he solicited a minor online.

A judge in Fairfax County on Friday granted 44-year-old Daniel Rosen of Washington release on $25,000 bond despite prosecutors' objection that he presents a flight risk.

Rosen was arrested earlier this week following a series of online exchanges with a Fairfax County police detective.

Rosen was ordered to surrender his passports, avoid contact with minors and stay off the computer while out on bond.

Fairfax police have said Rosen works as a counterterrorism official at the U.S. State Department.

Rosen's lawyer, Christopher Leibig, said after the hearing he was pleased that the judge recognized that Rosen enjoys a presumption of innocence.