Man charged with impersonating federal agent