'Washington, Islamabad agree on deterring terrorist groups'