The explosion comes during a period of relative calm between the Palestinian-ruled territory and Israel -- and between the rival Hamas and Fatah factions .