Taiwan’s strongest earthquake in a quarter century damaged buildings and left at least nine people dead.