Hamas has begun cracking down on Gazans who participated in recent protests against the group’s rule, executing six people and publicly beating others, according to Palestinian activists and residents.