Microsoft says it has cut services to an Israeli military unit running a surveillance system that monitored millions of calls in Gaza.