Hamas battles jihadis in Gaza