An Immigration and Customs Enforcement officer was "brutally assaulted" by a convicted child predator, the agency announced.