Locals caught hold of the accused before he could flee and thrashed him. Police said the suspect sustained serious injuries in the assault and was shifted to a hospital for treatment under police security.