Continued from page 1

Prosecutors also accuse Mr. Ferdaus of supplying the undercover agents with cellphone devices he said could be used to detonate explosives remotely. When the undercover agents falsely told him the devices had been used to kill three U.S. soldiers in Iraq, he allegedly became visibly excited and said he felt “incredible. … We’re changing the world.”

Mr. Ferdaus is unmarried and has no children, the affidavit said.

He has had at least one previous brush with the law. In 2003, the Boston Globe reported that he and two other Ashland High School seniors were accused in a vandalism spree at the school.

AP researcher Barbara Sambriski contributed to this report.