A federal judge on Monday sentenced a former Secret Service agent to nearly six years in prison following his conviction on charges related to the theft of electronic currency during a high-profile investigation into the online drug bazaar Silk Road.