An Arizona man convicted of supporting the Islamic State and helping plot an attack on a prophet Muhammad cartoon contest in Garland was sentenced Wednesday to 30 years in prison.

Abdul Malik Abdul Kareem provided weapons that were used by the gunmen. (Maricopa County Sheriff's Department)

Abdul Malik Abdul Kareem, 45, provided the guns that Elton Simpson and Nadir Soofi used to open fire outside the event at the Curtis Culwell Center on May 3, 2015. He also discussed plans for the attack with the pair at his home.

Garland ISD security officer Bruce Joiner was shot in the ankle during the attack; Garland police Officer Gregory Stevens and SWAT team members returned fire, killing Simpson and Soofi.

A jury found Kareem guilty in March.

On Wednesday, he kept his head down as the judge read his sentence. "I had nothing to do with this crime," he said.

Prosecutors had sought a life sentence; Kareem's attorney wanted his client to receive less than six years in prison.

Prosecutors said that Kareem, who grew up Baptist but converted to Islam later in life, watched videos of jihadi violence with Simpson and Soofi and motivated them to carry out a violent act in support of the group.

The trio first considered a plan to blow up the University of Phoenix Stadium in Arizona during Super Bowl XLIX, but moved on to the cartoon contest after that plan fell through.

The cartoon contest, organized by the anti-Islam activist Pamela Geller, included depictions of the prophet Muhammad, something considered offensive to many Muslims.

Kareem is the second person in the U.S. to be convicted of supporting the Islamic State.

The Associated Press contributed to this report.