Pakistan strikes deal with protesters in Islamabad