The sci-fi novel "The Dark Forest" by Chinese writer Liu Cixin describes a similar phenomenon. In that case it was achieved by detonating bombs to produce "interstellar dust clouds", in order to cause flickering of the light from the star, visible from other systems.
Maybe the aliens from KIC 8462852 read Chinese sci-fi novels.