Ex-paramilitary sentenced to 24 years in prison