KABUL (AFP) - Afghanistan warned Tuesday that Pakistans deal to allow Taliban to impose Islamic law in part of the country may have dire consequences for the region and could harm ties between the neighbours. The criticism came after President Asif Ali Zardari signed an accord to put the vast Malakand district under Sharia law as part of efforts to end an insurgency, despite fears that it could encourage extremism. We do not interfere in Pakistans internal affairs, President Hamid Karzais spokesman, Homayun Hamidzada, told reporters in response to a question about the deal. However there were concerns that dealing with terrorists and handing over parts of one country to terrorists could have dire consequences in the long term, he said. Hamidzada added that since any deal with terrorist groups can affect our people and our countrys security, we request Pakistan, before any such deals, take into consideration its negative impacts on relations between the two countries. Afghanistan is battling an insurgency led by the Taliban who were removed from power in Kabul in a US-led invasion in 2001. The fight against extremists has brought thousands of Western troops to Afghanistan although US commanders say that a main source of the threat is in Pakistan where the government allowed militants to gain power. Kabul has for years demanded that Islamabad deal with militant sanctuaries on its soil, the issue souring relations between Karzai and former president Pervez Musharraf.