Three-dimensional hybrid simulation of magnetized plasma flow around an obstacle