NASA said astronomers caught an image of a flare from a black hole “devouring” a star on the outskirts of a faraway galaxy.