Locals who had gathered there thrashed the driver, after which they handed him over to the police