Hamas strikes deal with Fatah