10-year-old girl is detained by Border Patrol after emergency surgery