Defeating USSR was in Pakistan’s interest but that does not mean that it had to become a question of “ideology”. Pakistan was involved but it was not Pakistan designing the bringing down, only providing manpower and logistics.
Just how US knows Mullah Omar and OBL are in Pakistan