Rafik Hariri , a billionaire contractor who plunged into the maelstrom of Lebanese politics to rebuild his war-ravaged country and twice served as prime minister , died on Monday in a huge car bomb explosion in Beirut .