A giant star that is still being consumed by a supermassive black hole may have caused the largest flare of its kind ever seen, astronomers say.