A man was arrested after threatening to commit an attack while traveling on a high-speed TGV train in eastern France on Friday.

Police sources said the individual threatened to blow up himself or the train. There was no immediate suspicion that terrorism was a motive and the individual’s mental health was being investigated, they added.

"This morning, a police officer ... arrested a threatening individual on board a TGV in Moselle. Kudos to him!" Interior Minister Gerald Darmanin said on Twitter.

ITALIAN MOB SUSPECT ARRESTED IN FRANCE AFTER BEING ON THE RUN FOR 16 YEARS

High speed TGV train France

A man was arrested for threatening to blow up himself or the train while traveling on a high-speed TGV train in France. (Nathan Laine/Bloomberg via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

The officer was off duty at the time, the police sources said. Off-duty policeman are allowed in France to carry a firearm on trains as part of a "travelling to protect" government scheme.