Iceland Prime Minister Sigmundur Gunnlaugsson resigned from office Tuesday, two days after leaked documents from a Panamanian law firm that handles offshore financial accounts showed his previously undisclosed investments.