Alton man sentenced for shooting near school