A man is behind bars after the sheriff's office says he attempted to shoot deputies with an AR-15-style rifle on Tuesday.