Man sentenced to 10 years for attempted criminal sexual assault