Man jailed after allegedly pointing gun at officer