Facebook has reached a deal with its chief information security officer to depart after disagreements over how to address its role in spreading disinformation, said people briefed on the matter.