I've always seen TTP as a force that operated with the tacit approval of Afghan Taliban. It's existence helped shore the anti American sentiment in Pakistan that was not good for elements within the establishment (who favor American partnership). This sentiment was one of the elements that contributed to Imran's rise of popularity in KP.It wasn't a terrible idea, everyone supported it, but it isn't going as planned. TTP continues to operate with impunity and terrorist attacks continued, which probably led to this strike.
Now that the Afghan war is over, Afghan Taliban have no real utility for TTP. Pakistan should be able to negotiate a surrender of TTP by releasing their prisoners and offering them some degree of autonomy for the near future. The Haqqani network in Afghan Taliban could possibly help facilitate this. Curious about why Pakistan is not willing to let go of some prisoners in pursuit of larger strategic goals