His death comes in several versions. In one, he was fleeing a mob and stopped at a field of beans rather than trample it, and they killed him there. In another, he starved himself. Death stories like these were often built later out of a thinker’s own teachings.
From Lives of the Eminent Philosophers by Diogenes Laertius