Man allegedly beaten for holding his penis while sleeping