Nonlinear Force-free Modeling of Flare-related Magnetic Field Changes at the Photosphere and Chromosphere