Guatemala City (CNN) -- Software pioneer John McAfee ended the day Thursday as he started it: imprisoned in a Guatemalan immigration detention center.
Earlier, a neon green ambulance had whisked the 67-year-old to a police hospital just hours after officials rejected his bid for asylum. McAfee's legal team said doctors were treating him for cardiovascular problems.
Later, attorney Telesforo Guerra offered a different diagnosis: McAfee had suffered a nervous breakdown, but tests showed he did not have heart problems.
The series of events were the latest dramatic twists in a saga that reads like a best-selling mystery, with poisoned dogs, a dead neighbor and international intrigue fueled by weeks on the run.
The next chapter could unfold in Belize, where Guatemalan officials said they were preparing to deport McAfee after rejecting his asylum bid.
Police in Belize are ready to meet McAfee at the airport if he's deported, spokesman Raphael Martinez said.
Authorities there have said they want to talk to McAfee about the November 11 shooting of his neighbor, American businessman Gregory Faull.
Under Belize law, McAfee can be held for 48 hours without charges, Martinez said.
But McAfee's fight to stay in Guatemala isn't over.
His attorneys said they filed a request for an injunction with Guatemala's Supreme Court.
Standing outside the police hospital as ambulance lights flashed nearby, attorney Karla Paz said officials had unjustly rejected McAfee's petition without weighing the evidence.
"Due process has been violated. The right to defense has not been respected," she said.
Guatemalan authorities took McAfee into custody Wednesday on accusations of entering the country illegally.
After weeks in hiding, anti-virus software company founder emerged publicly Tuesday in Guatemala's capital, hundreds of miles from the Caribbean island in Belize where his next-door neighbor was found dead.
McAfee requested asylum in Guatemala, arguing that he left Belize to escape police persecution.
But Guatemalan authorities found there was no basis for his asylum request, presidential spokesman Francisco Cuevas said Thursday.
McAfee founded his namesake computer security software in 1987, initially running it out of his home in California. He sold his stake in McAfee Associates in 1994 and moved to Belize in 2008.
On November 9, he told police someone poisoned his four dogs there. To put them out of their misery, he shot each in the head and buried them on his property, according to a former girlfriend.
The dogs' barking and aggressive behavior was a frequent source of friction between the two neighbors.
Two days after the dogs were poisoned, Faull was found fatally shot in the head.
McAfee has said he had nothing to do with Faull's death, and Belize authorities are out to get him because he refused to pay a bribe to a politician months earlier.
Belize police say they only want to talk with McAfee.
"He's really gone out of his way to make the country look bad," Martinez, the police spokesman, said earlier this week, "and we just believe he should, if he's innocent as he's saying he is, he should bring in his lawyer, and let's get to the bottom of this and say what he needs to say and let's move on."
CNN's Martin Savidge, Faith Karimi and Michael Martinez contributed to this report.