China announced plans for live-fire military drills soon after Ms. Pelosi flew into Taiwan. Analysts said Beijing’s move seemed designed to project strength rather than serve as a precursor to an invasion.