The suspected attacker narrowly escaped a lynch mob.