Near-Optimal Distributed Minimax Optimization under the Second-Order Similarity