The leak probe frustrated some law enforcement officials because it was viewed internally as an instance where officials found themselves caught up in an internal inquiry only because they had tried to prevent misinformation about surveillance capabilities from spreading far and wide among the public and lawmakers. Others said the very existence of the investigation was mostly due to a disagreement between two agencies, according to people familiar with the matter.