The attack came hours after Israeli troops killed two children in northern Gaza during fighting Tuesday with Palestinian militants .