After deadly shootings on the subway and around the country, New York’s mayor wants to install gun detectors at select stations. Transit and police officials are interested, but have doubts about whether the systems could work to avert deadly attacks.