he exhibited spasmodic movements which led some of the bystanders to think that he was on the point of dying , but within a few seconds after he had swallowed the pellet he appeared to be completely restored .