American Airlines said the man had a reservation to fly to Dallas-Fort Worth International Airport [GALLO/GETTY]

A man has been detained after trying to go through a security checkpoint at a Texas airport with explosives in military-grade wrapping, federal and local officials have said.

The man was stopped on Saturday at a security checkpoint at the Midland International Airport at about 9am and taken into custody by the Federal Bureau of Investigation (FBI), they said.

Mike Martinez, an FBI spokesman, declined to say whether the man was in military uniform or how many explosives were found in the bag.

He said he did not know where the man was being held, saying he was at either the airport or at the FBI office in Midland.

Police Sergeant Brian Rackow told the Midland Reporter-Telegram and Odessa American that the man identified himself to investigating officials as being active in the military.

He and his family had been in the area visiting relatives and were on their way back to his base in North Carolina, Rackow said.

It was not clear which base, and Rackow did not immediately return phone calls to the AP news agency for comment.

X-ray screening

City of Midland spokeswoman Tasa Watts said she had no information on the suspect but the explosives were wrapped in military-grade wrapping.

She said the specific grade would not be known until the explosives were tested.

The Transportation Security Administration issued a statement saying one of its officers spotted a suspicious item in a carry-on bag during X-ray screening.

It said the checkpoint was closed for about an hour while officers investigated and removed the item.

Watts said the man was entering a terminal when he was stopped, and a sweep was done to clear the terminal before normal operations resumed.

An American Airlines spokesman said the man had a reservation on Flight 3283 from Midland to Dallas-Fort Worth International Airport. The departure time for the American Eagle plane was 9:45am.