Hamas, which has ruled Gaza for 10 years, released a statement saying it is willing to end its feud with Fatah, which controls the occupied West Bank.