Israel hits Gaza after Palestinian military attack