A 5-year-old boy who had been showing Ebola-like symptoms after recently returning from West Africa doesn’t have the disease, a spokesman for New York City Health and Hospitals Corporation said Monday.

Amid the good news for the boy’s family and the city at large, the scramble by city health officials to diagnose the boy underscored the extensive efforts underway to contain the virus.

Police...