Consider the acoustic wave scattering by an impenetrable obstacle in two dimensions, where the wave propagation is governed by the Helmholtz equation. The scattering problem is modeled as a boundary value problem over a bounded domain. Based on the Dirichlet-to-Neumann (DtN) operator, a transparent boundary condition is introduced on an artificial circular boundary enclosing the obstacle. An adaptive finite element based on a posterior error estimate is presented to solve the boundary value problem with a nonlocal DtN boundary condition. Numerical experiments are included to compare with the perfectly matched layer (PML) method to illustrate the competitive behavior of the proposed adaptive method.