BEAUMONT, Texas — A 40-year-old military veteran was arrested in connection with two explosive devices found in southeast Texas in recent weeks, federal prosecutors said Friday.

Investigators with the Bureau of Alcohol, Tobacco, Firearms and Explosives and the FBI said in a news conference that they had linked the devices and postcards with cryptic messages referring to the bombs that were sent to the Beaumont Police Department to Jonathan Matthew Torres.

Investigators found mousetraps, screws and other components of the devices and postal materials while executing a search warrant Thursday at Torres' Beaumont home. After the search, Torres was taken into federal custody without incident.

A device exploded May 10 outside an Episcopal church, shattering windows and causing other damage. No one was hurt.

Another device that didn't detonate was found April 26 inside a U.S. Postal Service mailbox near a Starbucks. The device consisted of a mailing package containing explosive material and a mousetrap that was designed to be triggered when the package was opened, according to a probable cause affidavit.

Police found a note in the package reading "Haji die U.S.A.," and signed "J.H."

U.S. Attorney for the Eastern District of Texas Joseph Brown said during the news conference Friday that evidence found in Torres' home suggested he was preparing and had the capacity to mail a more damaging device. Brown said that with Torres in custody, he was "very confident that there's no further threat to the public."

He said investigators are still determining a motive, but they had ruled out international terrorism or racial or religious animosity.

Torres was charged with using an explosive to cause property damage, possession of an unregistered destructive device and mailing a threatening communication. He is scheduled to appear in court May 29. If convicted, Torres faces between five and 20 years in prison.

Earlier this month, police said they were working to ensure the incidents didn't "mirror the recent events of Austin."

The discovery of the devices in Beaumont followed a series of package bombs that exploded in the Austin area over a three-week period, killing two people and severely wounding four others. The suspect used one of his own devices to blow himself up as authorities approached his stopped vehicle on March 21.

Torres alluded to the Austin bombings in postcards mailed to Beaumont police, according to the affidavit.