Scientists have discovered the origin of a mysterious radio signal that flashes on and off every eight minutes.