Existence of a ground state solution for a nonlinear scalar field equation with critical growth