Man charged with gun offences after a police car was shot at during a pursuit