A 7.4-magnitude earthquake shook the entire island of Taiwan at 7:58 local time on Wednesday, leaving at least nine people dead and more than 900 injured, Taiwanese officials said.