Two sides agree on joint efforts to eradicate terrorism