Hamas was also critical of Mr. Abbas for his willingness to work with Israel 's prime minister , Ehud Olmert , at a time when Mr. Abbas had broken off negotiations working toward a Palestinian unity government with Prime Minister Ismail Haniya , of Hamas .