For the first time in about eight years a Marin County sheriff's deputy this weekend fired his gun in the field, in this case hitting a man driving a car toward him, said sheriff's officials Monday.

The deputy wounded the Marin City resident, hitting Chaka Grayson, 44, twice in one arm. Grayson remained hospitalized Monday, said Marin sheriff's Lt. Jamie Scardina.

The shooting occurred Sunday evening in front of about 30 to 40 people on a Marin City street. Angered by the shooting, several people began throwing rocks at the deputy and he was hit in the head.

He was treated for head wounds and released, Scardina said.

The deputy was identified as a five-year department employee.

Novato police detectives are investigating the officer-involved shooting.

Marin sheriff's officials said the deputy was on patrol in Marin City at about 5:50 p.m. on Terners Drive when he saw another car pull to the side of the road. He recognized the driver as Grayson, who was known to have a suspended license.

The deputy stopped to talk to him and while walking toward the car the driver ducked out of sight. The deputy pulled out his gun and ordered the driver to show his hands.

The deputy reported Grayson began driving at him, accelerating, and so he fired several rounds at the man in the car, Scardina said.

The car passed him and disappeared down the road.

Because of the crowd of onlookers it wasn't clear who or how many people had thrown rocks. Scardina said that unless deputies received information identifying who was involved, no arrests were expected.

A witness alerted deputies to Grayson's car, which had been abandoned in a lot. Near the car was a trail of blood that led to nearby Cole Drive.

Deputies later Sunday night were contacted by friends or family of Grayson's who said he wanted to surrender safely and that he needed medical help, said Scardina.

At about 10 p.m. Grayson was hospitalized and arrested on suspicion of assault with a deadly weapon.

Sheriff's officials declined to release the deputy's name. Scardina said it has been about eight years since a Marin deputy fired their weapon while in the field.