BIRMINGHAM, Ala. — An Alabama man has pleaded guilty to plotting to help the Islamic State group.

Aziz Sayyed pleaded guilty Thursday in federal court in Birmingham, Alabama, to charges that he planned to aid the extremist organization.

Federal prosecutors said Sayyed, after watching videos from the terrorist group, purchased the ingredients to make an explosive and told others about his hope to use it in a car bomb or explosive belt.

According to the plea agreement, Sayyed, who lives in Huntsville, told people he wanted to attack police stations or the Redstone Arsenal military installation. He was arrested after discussing his plans with an undercover FBI agent.