A highly magnified star at redshift 6.2