Pakistan and Afghanistan have agreed to an « immediate ceasefire » at talks in Doha, Qatar’s foreign ministry said early Sunday after weeks of fighting that killed dozens of people and injured hundreds.