A widening diplomatic rift is complicating efforts to confront a shared cross-border security threat.