An Israeli airstrike in Gaza killed at least 27 Palestinians, including women and children, amid rising tensions with Hamas.