The U.S. military rescued the two men in the Caribbean Sea after Special Operations forces fired on a semi-submersible that was assessed to be smuggling drugs.
A Navy guided missile destroyer docked near the entrance to the Panama Canal in Panama City last month. The United States has deployed warships, surveillance planes and an attack submarine to the region.
A group of 18 detainees had been held at the offshore base for less than a week. They were deported days before a court hearing where lawyers are challenging the holding of migrants there.