Islamabad, Kabul agree to check militants movement