A teenager has been charged in connection with an incident in which a car was driven at a police officer