Three-dimensional simulations of the MHD wave propagation in an open magnetic flux tube