Beijing's show of strength came after Nancy Pelosi, the speaker of the US House of Representatives, visited Taiwan.