MINNEAPOLIS (AP) — A Minnesota man says he was threatening U.S. Attorney General Loretta Lynch when he fired off an angry tweet after federal prosecutors charged six other Minnesota men with trying to join the Islamic State group.

As part of a plea agreement, Mahamed Abukar Said (sy-EED') pleaded guilty Friday to a misdemeanor charge of impeding a law enforcement officer. He faces a maximum of a year in jail and up to five years of probation when he's sentenced Nov. 23.

Said was originally charged in April with two felonies after taking to Twitter with a threat to "whack" the U.S. attorney general. Prosecutors said he actually meant U.S. Attorney for Minnesota Andy Luger, whose office charged the alleged Islamic State recruits

But Said testified Friday that he meant the attorney general.

More From KROC-AM