Annie Ramos, wife of an active-duty US soldier, has been released after five days of detention in an immigration facility.