At least 20 children are among the dead in attacks north of Beirut and in northern Gaza, officials rescuers and medics say.