Man charged after allegedly passing gas toward cop