Car starts then cuts off on 2005 Cadillac DeVille

My car starts run for about 1 minute the cuts off. When i try to restart it clicks by the side panel on the drivers side. It sound like it's a solenoid. Do anyone have a clue?

Asked by for the 2005 Cadillac DeVille