Man sentenced to nearly 14 years for shooting tax agent