Gamma-ray burst 'hit Earth in 8th Century'