Armed officers and explosive-detecting dogs will patrol streets around New York’s Times Square, while snipers will monitor the crowds from nearby buildings.