Prosecutors say an agent with U.S. Immigration and Custom Enforcement's Homeland Security Investigation discovered Ritter had been making child pornography on the internet.

Prosecutors say Ritter admitted he had downloaded child pornography and that he had abused a toddler and taken pictures of the abuse using his cellphone. Ritter faces up to 30 years in prison when he is sentenced on Oct. 16.