In a lawful state you cannot resist an arrest. The right to defence, a lawyer, etc. applies to a trial, which is to be held after the arrest. If you resist an arrest, and are armed, expect bad things to happen.
Palestinian youths throw stones at security forces in Shoafat, E. Jerusalem; none injured (Haaretz)