The phrase ''would have been killed'' means something had happened that prevented another thing (an unlikely bad event) from happening.
If the police had not intervened quickly, the suspected thief would have been killed by the mob.