Violence is a legitimate means to redress grievances when all other means have been exhausted. Hamas attacking Israel is itself a reaction.