Israeli military says it has attacked 100 Hamas targets in Gaza in response to rocket fire.