A 26-year-old former National Guard soldier from Virginia who was considering a “Fort Hood-style” attack on a military base has been accused of attempting to provide assistance to ISIS, federal prosecutors say.

Mohamed Bailor Jalloh, a naturalized U.S. citizen from Sierra Leone, was arrested on July 3 after purchasing a “Stag Arms assault rifle” from a gun dealer in Virginia, the U.S. Attorney’s for the Eastern District of Virginia says in a press release.

Jalloh, of Sterling, Virginia, told an FBI informant he often thought about conducting an attack and referenced the November 2009 mass shooting at Fort Hood in Texas. Nidal Hassan, then a U.S. Army Medical Corps psychiatrist, killed 13 people and injured more than 30 others in the attack. He was convicted by a jury during a court martial and sentenced to death.

The FBI says Jalloh told an informant he was interested in doing “Nidal Hassan type of things. That’s the kind of stuff I started thinking you know. … I just want to live a good Muslim life and die as a (martyr).”