Three-dimensional hydrodynamic simulations of narrow-angle-tail radio sources. I: The Begelman, Rees, and Blandford model