His electronic devices contained images of child pornography and what are known as “child erotica” stories, federal prosecutors said.