Islamabad balances alliances, economic needs and public sentiment as it weighs potential troop deployment to Gaza.