A 23-year-old man being sought by police Wednesday made his way through a security checkpoint at John F. Kennedy International Airport while carrying a stun-gun, a law-enforcement official said.

The suspect, who was wanted after allegedly raping his former girlfriend, had been waiting in line inside Terminal Four to board an 8:40 a.m. flight to London on Wednesday when he was taken into custody by U.S. Customs and Border Protection officers, the official said. He was carrying a gym bag which was found to contain clothing, toiletries and a 3,800K-volt stun-gun, which is on the list of banned items for airplane travel.

The suspect was turned over to New York Police Department detectives, who are investigating accusations that he assaulted and raped his 19-year-old ex-girlfriend at her Queens apartment after arriving from Greece three days ago. He was expected to be charged later Wednesday and his name wasn't released.

A TSA spokesperson couldn't immediately comment on the incident.

The apparent breach of airport security follows a report last week that an undercover Transportation Security Administration inspector brought a mock explosive device through two security checks at Newark Liberty International Airport in New Jersey. The improvised device, which was hidden in his pants, went undetected despite a pat-down by TSA agents, according to the report in the New York Post.