Man charged with attempting to defraud a Brooklyn law enforcement agent