Taiwan has responded after China appeared to take part in military drills that simulated an attack following a major US official visiting the island.