The country’s former defence minister tried to kill himself shortly before he was formally arrested over his role in this month’s martial law operation, a senior prisons official said.