The Israeli military says it has encircled Gaza’s second largest city, where fierce battles with Hamas continue. Dozens of people have been killed and thousands have fled further south.