PITTSBURG -- Authorities have identified a Brentwood man who led California Highway Patrol officers on a pursuit with his 7-year-old son in the car, then was shot by an officer after he had dropped the boy off.

The incident occurred June 28 after a CHP officer attempted to pull over a driver, later identified as 29-year-old Terry Ferguson, on Highway 4 in Pittsburg. Instead of pulling over, Ferguson sped off, stopping only to drop off his 7-year-old son.

The chase continued into Martinez, where Ferguson rammed a CHP car and tried to strike a Martinez police car, according to the Contra Costa County Sheriff's Office.

The pursuit ended when Ferguson collided with a telephone pole and a parked car on Pacheco Boulevard near Falling Star Drive. The driver got out of his car, keeping his hands inside his waistband and ignored commands to show his hands, said sheriff's spokesman Jimmy Lee. The CHP officer shot Ferguson, wounding him.

Lee could not immediately say how many times or where Ferguson had been shot.

Investigators later found a gun in his car. Lee said drugs were also found but did not specify which drugs or how much were found.

Ferguson was taken to John Muir Medical Center in Walnut Creek. He was released Thursday and booked into county jail.

He has been charged with felony evasion, possession of drugs for sale, being a prohibited person in possession of a firearm and child endangerment.

Anyone with information on this case is asked to contact the Contra Costa County Sheriff's Office at 925-313-2600.

Follow Karina Ioffee at Twitter.com/kioffee.