If they're wielding a weapon, I wouldn't hesitate to punch, kick, or do anything to disable them. If they're just attacking with their body, and thus most likely not too much of a physical threat, then I'd just try and restrain them or push them away.