The incident risked repeating a recent crisis in which thousands of Cubans determined to make it to the United States became stranded in Costa Rica because their passage north through Central America was blocked.
Costa Rican officials vowed to deport back to Panama any undocumented migrants, and blamed the United States for "promoting" the flow of Cubans.