Brave cop takes down armed attacker during dramatic encounter in southern India