Liberia has been briefly cut off from the internet by hackers targeting its only link to the global network.