A 3-local characterization of the group of the Thompson sporadic simple group