An Israeli military offensive into Gaza in December 2008 to stop cross-border rocket attacks by Hamas militants killed at least 1,300 Palestinians and 13 Israelis .