Afterglow spectrum of a gamma-ray burst with the highest known redshift z=6.295