Li Keqiang, once the second most powerful man in China, suffered a sudden heart attack, state media said.