Microsoft has fired four employees who participated in a sit-in in President Brad Smith’s office, part of a push to get the company to cut ties with the Israeli government.