Gaza's Hamas rulers have sentenced three Palestinians to death for allegedly killing the group's senior commander after collaborating with Israel.