(CBS/AP)-- Anti-virus software founder John McAfee has been released from detention in Guatemala and is heading to the United States.
Guatemalan immigration officials have escorted McAfee to the Guatemala City airport where he is expected to fly to Miami.
Reuters reported Guatemala's immigration office spokesperson, Fernando Lucero, saying: "Complying with migration law, Mr. John McAfee is to be deported to his country of origin."
McAfee said Wednesday "I'm free, I'm going to America."
He also spoke to Reuters via telephone: "I'll be leaving at 3:30 (p.m.) to Miami. That was the only option I had. I can't take a flight that stops in any other country and there are only two flights going to America today."
Telesforo Guerra, a lawyer for McAfee, said Tuesday that a judge has ordered the software company founder released from a Guatemalan detention center. Guerra said the judge notified him verbally of the ruling.
Guerra said Secaida ruled that McAfee's detention was illegal, ordered him released, and gave him 10 days to put his immigration situation in order. It was not immediately clear if McAfee could get some kind of temporary or transit visa to allow him to leave Guatemala.
McAfee was detained last week for immigration violations after he sneaked into Guatemala from neighboring Belize. He had been on the lam for weeks before that, saying he donned disguises to avoid Belizean police who want to question him in the fatal shooting in November of another U.S. expatriate, Gregory Viant Faull.
The victim lived a couple of houses down from McAfee's compound on Ambergris Caye, an island off Belize's Caribbean coast. McAfee acknowledges that his dogs were bothersome and that Faull had complained about them, but denies killing Faull.
McAfee has said corrupt Belizean authorities are persecuting him, something officials in Belize deny. McAfee says he fears for his safety in Belize because he has sensitive information about official corruption and refused to donate to local politicians.
In a live-stream Internet broadcast Sunday from the Guatemalan detention center where he was put under the government order that he be returned to Belize, the 67-year-old McAfee said he wants to return to the United States and "settle down to whatever normal life" he can.
"I simply would like to live comfortably day by day, fish, swim, enjoy my declining years," he said.
McAfee is an acknowledged practical joker who has dabbled in yoga, ultra-light aircraft and the production of herbal medications. He has led an eccentric life since he sold his stake in the software company named after him in the early 1990s and moved to Belize about three years ago to lower his taxes.
He told The New York Times in 2009 that he had lost all but $4 million of his $100 million fortune in the U.S. financial crisis. However, a story on the Gizmodo website quoted him as describing that claim as "not very accurate at all."
Faull's family has said through a representative that McAfee's skillful courting of the media, including blog posts, email messages clandestine interviews, has obscured the point that McAfee should submit to police questioning.