A retired Springfield police officer has been ordered to spend four years in federal prison for possessing child pornography.

The U.S. attorney's office said in a news release that 60-year-old Steven Robert Magruder was sentenced Thursday. He entered a guilty plea in October.

Magruder retired as a corporal from the Springfield Police Department in 2005. He worked part-time from 2006 to 2014 as a security officer for Ozarks Technical Community College in Springfield and as a bailiff for the Greene County Circuit Court in 2013.

Prosecutors say a Jasper County Sheriff's Department detective determined in January 2013 that Magruder's computer had been used to share child pornography over the Internet. His computer was seized, and prosecutors said it contained child pornography.

ThinkStock