A Texan running a 3D-printed gun company who had flown to Taiwan after being accused of paying an underage girl for sex was detained in Taipei on Friday and ordered to leave the island after his U.S. passport was annulled, officials said.

Cody Wilson, 30, was taken to immigration authorities in the capital by officers from Taiwan's Criminal Investigation Bureau, according to officials.

He was ordered to leave Taiwan because he no longer has a valid travel document, said Zhang Wen-xiu, a director of the international affairs and law enforcement division at Taiwan's National Immigration Agency.