An alleged terrorist plotting to kill a train full of people is unknowingly driving with an undercover FBI agent. Suddenly, two disembodied voices can be heard near the dashboard. Agents in a nearby surveillance car who are supposed to be listening in on the suspect are instead unwittingly broadcasting their conversation to him.

It’s the kind of technical glitch that can leave an FBI agent dead.

The...