Updated

A Maryland man has pleaded guilty to conspiring to provide material support to the Islamic State.

The U.S. Attorney's Office says in a news release that 32-year-old Mohamed Elshinawy entered the plea Tuesday in federal court in Baltimore.

According to his plea deal, Elshinawy of pledged allegiance to the Islamic State and received $8,700 to carry out an attack in the United States.

Prosecutors say Elshinawy conspired with others to provide material support and resources, including personnel, communication and financial services, to the Islamic State.

Elshinawy faces a maximum of 20 years in prison. A sentencing date has not been set.