Palestinian gunmen kept up attacks against Israeli forces on Sunday in the Gaza Strip’s two main cities, weeks after they were overrun by troops and tanks, in a sign Hamas still maintains some control ahead of any potential truce.

Nearly four months into the war triggered by the Palestinian Islamist group’s deadly cross-border rampage in Israel, there was persistent fighting in Gaza City in the north of the densely populated enclave, and in Khan Younis to the south.