The Justice Department said Jonathan Hunter Kramer, 21, was acting in support of a foreign terrorist group. He was charged after obtaining a semiautomatic rifle and ammunition.
The case is a test of the Alien Terrorist Removal Court, where much of the evidence is presented in secret and defendants cannot challenge how it was collected.
Nigerian soldiers training at a military base in Monguno, Nigeria, last year amid a surge in attacks by jihadists. Extremist groups like Boko Haram are turning to A.I. for tactical on-the-ground advantages, highlighting a broader challenge for the A.I. industry.
The military base at Al-Tanf had hosted U.S. troops fighting against the Islamic State since 2016. Some of the troops are expected to be repositioned at a Jordanian military base across the border.
The attack comes after President Trump ordered the Defense Department last month to prepare to intervene militarily in Nigeria to protect Christians from Islamic militants.
American forces struck dozens of suspected ISIS sites, making good on President Trump’s vow to avenge two American soldiers and a civilian U.S. interpreter killed by the group last week.
The dignified transfer of the American soldiers killed in Syria. The assault last weekend was a stark reminder of the danger in the region and the quandary of whether to keep American forces there at all.
The shooting attack in Palmyra, Syria, on Saturday struck Iowa National Guard troops. Two were killed, along with an American civilian interpreter; three others were wounded.