A New York City public-school teacher who recently traveled to Italy is under self-quarantine after showing symptoms of the new coronavirus, prompting city officials to give her school a deep clean and to have disease specialists retrace her steps, officials said Wednesday.

The teacher spent a few days in the classroom before showing signs of the illness, officials said at a City Hall news conference.

She...