Gazan man says Hamas beat him for alleged affairs