Bob Hawke, one of Australia’s longest serving prime ministers, died on Thursday just days ahead of a federal election, the opposition Labor party said.