Adam Polakowski, 45, was arrested by agents from the Department of Homeland Security at his home this week after they discovered he had exchanged 36 sexually explicit emails with an Arizona man, according to an affidavit filed in federal court.

The images seized in Polakowski's home show children between the ages of 4 and 14 engaging in a variety of sexual activity, the affidavit states.

Polakowski admitted to agents that he "engaged in fantasies with others about the violent abduction and rape of children," according to the affidavit. "Polakowski further admitted to taking surreptitious photographs of unknown girls at a local (Cape Cod) beach."

According to the affidavit, a baseball bat, rope and rolls of tape were found inside Polakowski's van.

Polakowski is charged with both possession and distribution of child pornography.

Lawyers for Boston Marathon bomber Dzkokhar Tsarnaev rested their case in his federal death penalty trial Tuesday after presenting a brief case aimed at showing his late older brother was the mastermind of the 2013 terror attack.