A prominent human rights group says Hamas militants committed war crimes when they launched rocket attacks against Israel .