Strikes in northern Gaza and across Lebanon killed at least 20 children, officials said, highlighting the toll of Israel’s war against militant groups on local populations.