I will definatly take the gun and shoot him in his leg to free my friend. This is the first step that I would do at the first sight of the incident. Then I will let to know the police and to the medical emergency to proceed further for the medico-legal action to proceed with the law.