A 23-year-old Greek man who is a suspect in the rape of a woman in Queens was arrested Wednesday near a gate at Kennedy International Airport; he was carrying a stun gun in a carry-on bag, prosecutors said.

The Queens district attorney said the man, Prodromos Vasilopoulos of Athens, had used a stun gun Tuesday to subdue and then rape a 19-year-old former girlfriend in her apartment in the Jamaica neighborhood. Mr. Vasilopoulos had already passed through security screening with his stun gun and was waiting to board a plane to London when he was arrested, said the district attorney, Richard A. Brown.

Asked to explain how Mr. Vasilopoulos could have evaded detection by the Transportation Safety Administration screeners, a spokeswoman for the agency said in a statement, the “T.S.A. takes this incident seriously and will carefully review the details.”

Mr. Vasilopoulos was charged with predatory sexual assault, first-degree burglary, second-degree assault, strangulation and second-degree criminal possession of a weapon for his actions on Tuesday, Mr. Brown said. Mr. Vasilopoulos was also charged in a second complaint with second-degree aggravated harassment and second-degree harassment for having previously threatened to make the woman pay for breaking up with him, Mr. Brown said.