US citizen father wasn't allowed to take custody of his US citizen child, who was subsequently removed from the country to a place where the child presumably is not a citizen.
That's where court proceedings to establish custody would be necessary. But regardless, it's illegal to deport a citizen, especially to a third country where they are not a citizen.