Emergency services descended on a gas leak that caused major disruption in Wiltshire.