This is not the action of a friend. So it goes. Every country has different interests and will pursue them. The primary supply lines to Afghanistan go
through Pakistan. So if they are upset enough they could slow or shut those down.
Pakistani news media have reported what they said was the name of the CIA station chief in Islamabad in a possible leak from authorities seeking to damage covert American activity in the country.