Hierarchical autoregressive neural networks in three-dimensional statistical system