Pipeline operator TransCanada shut down a section of its Keystone pipeline Sunday after about187 gallons of crude oil spilled from the line in South Dakota, an accident that environmental groups say highlights the dangers of shipping oil by pipeline.