Since at least 2007, the FBI has been able to recognize the voice of Elton Simpson — one of the men suspected in the Texas shootings outside a contest featuring cartoons of the Muslim Prophet Muhammad.

Agents recorded the young man from Phoenix talking about fighting nonbelievers for Allah, sbout plans to travel to South Africa and link up with “brothers” in Somalia and about using school as a cover story for traveling overseas.

Simpson was arrested in 2010, one day before authorities say he planned to leave for South Africa. Despite more than 1,500 hours of recorded conversations, the government prosecuted him on only one minor charge — lying to a federal agent.

Years spent investigating Simpson for terrorism ties resulted in three years of probation and $600 in fines and court fees.

Then, on Sunday, two men whom authorities identified as Simpson and Nadir Soofi opened fire in a Dallas suburb on a security officer stationed outside the contest.

The deliberately provocative contest had been expected to draw outrage from the Muslim community. According to mainstream Islamic tradition, any physical depiction of the Prophet Muhammad — even a respectful one — is considered blasphemous, and drawings similar to those featured at the Texas event have sparked violence around the world.

Simpson and Soofi were wearing body armor, and one shot the guard in the leg. A police officer returned fire and struck both men, who were fatally wounded as SWAT team members also opened fire at them. The guard was treated for his injury at a hospital and released.

Simpson, described as quiet and devout, had been on the radar of law enforcement because of his social media presence, but authorities did not have an indication that he was plotting an attack, said one federal official familiar with the investigation. Less was known about Soofi who appeared to have never been prosecuted in federal court, according to a search of court records.

Simpson had worshipped at the Islamic Community Center of Phoenix for about a decade, but he quit showing up over the past two or three months, the president of the mosque said.

A convert to Islam, Simpson first attracted the FBI’s attention in 2006 because of his ties to Hassan Abu Jihaad, a former U.S. Navy sailor who had been arrested in Phoenix and was ultimately convicted of terrorism-related charges, according to court records. Jihaad was accused of leaking details about his ship’s movements to the operators of a website in London that openly espoused violent jihad against the U.S.

In the fall of that year, the FBI asked one of its informants, Dabla Deng, a Sudanese immigrant, to befriend Simpson and ask for advice about Islam. Deng had been working as an FBI informant since 2005 and was instructed to tell Simpson he was a recent convert to the religion.

Over the next few years, Deng would tape his conversations with Simpson with a hidden recording device, accumulating more than 1,500 hours of conversations, according to court records.

“I’m telling you, man, we can make it to the battlefield,” Simpson is recorded saying on May 29, 2009. “It’s time to roll.”

In court, prosecutors presented only 17 minutes and 31 seconds of the recordings during Simpson’s trial, according to court documents.

“I have to say that I felt like these charges were completely trumped up, that they were just trying to cover up what had been a very long and expensive investigation and they just couldn’t leave without some sort of charges,” said Simpson’s attorney, Kristina Sitton.

Sitton described Simpson as so devout that he would not even shake her hand and would sometimes interrupt their legal meetings so he could pray. She said she had no indication that he was capable of violence and assumed he just “snapped.”

On Monday, federal agents spent hours at a Phoenix apartment complex where the men had apparently lived. Bob Kieckhaver, one of a number of residents who were evacuated for about nine hours from units near the men’s apartment, said one of them had a beard and wore an Islamic version of a prayer cap. He was quiet, but the other man was more open and would greet others at the complex’s mailboxes. Both were seen feeding stray cats, he said.

Usama Shami, president of the Islamic Community Center of Phoenix, said Simpson was quiet, never angry and a regular on the basketball court, playing with young members of the mosque. He asked questions about prayer and marriage, Shami said, and he was rattled by the FBI investigation into him.

“I’ve never seen him angry,” Shami said of Simpson. “That’s the honest truth. He was always having a grin.”