Static wormhole solution for higher-dimensional gravity in vacuum