The police team surrounded the accused, who opened fire, leading to retaliation and the accused being shot in both legs