Former prosecutor gets 5 years for blackmail