An American man has pleaded guilty to supporting the al-Qaida-linked Somali group al-Shabab, which is designated a terrorist group by the U.S. government.
In a Virginia court Wednesday, 20-year-old Zachary Chesser also pleaded guilty to posting online threats to the creators of the "South Park" television show for their depiction of the Prophet Muhammad.
He faces up to 30 years in prison when he is sentenced next February.
Prosecutors say Chesser tried twice to travel to Somalia to join al-Shabab, which is fighting to topple the U.S.- and U.N.-backed transitional government of Somalia.
They say on one occasion he tried to take his infant son on the trip in a bid to avoid detection of his intent.
Chesser also ran a number of websites calling for jihad and violence against Americans.
Upset about how a "South Park" episode portrayed the Prophet Muhammad, prosecutors say Chesser posted messages urging death for those who defamed the prophet and posted links to help readers find the homes of the show's writers.
Neil MacBride, the U.S. Attorney for the Eastern District of Virginia, said Chesser endangered the lives of innocent people who will remain at risk for many years to come.
Some information for this report was provided by AP and Reuters.