At least 39 Palestinians were killed in an Israeli strike and drone attack on a restaurant and market in Gaza.