Hamas seized control of Gaza in mid-June after weeks of fighting with rival Fatah security forces loyal to Palestinian President Mahmoud Abbas .