A former senior cyber security official has been sentenced to a suspended prison term for using a secure government network to download animated child pornography.