Gaza 's borders have been largely sealed by Israel and Egypt following a violent takeover by the militant Hamas last year .