The following night, a backpack carrying pipe bombs was discovered in the train station in Elizabeth, N.J. Mr. Rahimi, who lived nearby, was publicly identified as a suspect, his photograph and description beamed across televisions, computer screens and with unprecedented alerts on smartphones.