CHICAGO (AP) — An undercover FBI agent who played the central role in ensnaring a suburban Chicago man in a terrorism sting has started testifying at the 25-year-old’s sentencing .

The judge closed the courtroom Tuesday to protect the agent’s identity over objections from the defense and press at Adel Daoud’s hearing. Live audio was available in another room.

READ MORE: Chicago Has 'Formally Passed The Omicron Peak' As New COVID-19 Infections Decline, Hospitalizations Level Off, Top Doc Says; Cautious Optimism With Similar Trend Reported Statewide

Prosecutors referred to the agent as “Mudafor,” the false name he used when he met with Daoud posing as an Islamic militant .

Daoud was arrested in 2012 after trying to detonate an inert bomb he believed would destroy a crowded Chicago bar.

READ MORE: No Changes To Chicago Travel Advisory; Every State Remains On The List For 3rd Week In A Row

Adel Daoud

Adel Daoud is charged with plotting to bomb a downtown bar. (Credit: CBS)

Prosecutors played wiretap recordings of the agent’s first meeting with Daoud in 2012. The then-18-year-old Daoud is heard constantly giggling as he boasts about his willingness to kill.

MORE NEWS: 15-Year-Old Killed, Five Other Juveniles Wounded In Trio Of Shootings In Chicago On Tuesday

Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.