Violence erupted after two protesters killed in police firing earlier this week.
Deal will be subjected to referendum vote before it comes into force.
Inquiry alleges human rights abuse in a drug-related shootout last year.
Venezuelan president shut frontier last year on security grounds.
Suspect was arrested last year for supporting IS group on social media.
Suspended president is accused of breaking country's budget laws.
More than 1,000 missing and murder cases reported over three decades.
Recent killings of three 12-year-old girls sparked nationwide protests.
Country hit by severe shortage of food, medicine and other supplies.
Opposition blames economic woes on the government's poor policies.