A young asylum seeker who was tortured in his native Venezuela no longer faces deportation after an immigration judge in Miami ended removal proceedings against him this week.

Immigration and Customs Enforcement agents arrested the man, Marco Coello, 22, in April when he appeared for his asylum interview and initiated deportation proceedings. The arrest, while legal, was unusual because Mr. Coello seemed to have a strong argument for winning asylum.

Now Mr. Coello can proceed with his asylum case after he asked an immigration judge to terminate the deportation proceedings and the Department of Homeland Security, the parent of ICE, did not object, according to a one-page order issued on Monday.

“They screwed up royally when they detained him and here’s the proof,” said his lawyer, Elizabeth Blandon. She added that Mr. Coello was “extremely grateful.”