Obama position during the campaign was that if Pakistan could not control it border with Afghanistan then we would used military force to do so and go in and to get terrorists if Pakistan would not or could not act.
So what the surprise here?
Hell this kind of thing had been happening from the very start of our country going back to when Florida was a territory of the Spanish Empire and yet they did not control either the Indians tribes or British agents who was promoting trouble and there was Indians raids into George as a result.
Jackson was send into Florida where he not only punish the Indians but hung a number of British agents/citizens from Florida trees.
We then suggested strongly to Spain that they should sell us Florida.
Pakistan or anyone else can not rightfully claim sovereignty over a territory and at the same time excuse attacks from that territory because they do not have control as you can not be sovereign over a land you do not control.