In the first incident Wednesday , Israeli soldiers killed two Hamas militants near the Karni cargo crossing .