Authorities on the scene of a police shooting near North Mathilda Avenue and Ahwanee Avenue in Sunnyvale on September 4, 2013. (CBS)Authorities on the scene of a police shooting near North Mathilda Avenue and Ahwanee Avenue in Sunnyvale on September 4, 2013. (CBS)

SUNNYVALE (CBS SF) – A man who was wounded in an officer-involved shooting Wednesday outside a restaurant in Sunnyvale during an undercover drug investigation has died of his injuries, a police captain said.

The Santa Clara Police Department and the Santa Clara County Sheriff’s Office were working the covert drug probe when the shooting took place around 3 p.m., according to Sunnyvale Department of Public Safety Capt. Dave Pitts.

The sheriff’s office reported on Twitter Wednesday afternoon that one of its deputies was involved in the shooting and that Sunnyvale police are handling the investigation.

The man, whose name was not immediately available, was transported to a hospital and was later pronounced dead, Pitts said.

The shots were directed at the suspect inside the parking lot of Hobee’s restaurant at 800 W. Ahwanee Ave., near Mathilda Avenue and U.S. Highway 101, Pitts said.

Sunnyvale police officers knew about the operation in advance and were in the area to provide assistance, Pitts said.

No one else was injured in the shooting and the investigation into it is in the early stages, Pitts said.

A clerk at a Motel 6 at 806 W. Ahwanee Ave. said he heard about 15 gunshots and then a saw a wounded person being transported from a pickup truck.

The clerk, John Carroll, 69, said he heard shots ring out around 2:30 p.m. outside the Hobee’s restaurant. He said he then saw police cordon off the scene.

“They pretty much shut down the area pretty quickly,” Carroll said.

The pickup had bullet holes in the windshield and on both the driver’s and passenger’s sides, Carroll said.

“As many shots that were fired, it’s hard to believe” that the suspect survived, Carroll said.

Two lanes of North Mathilda Avenue were blocked during the preliminary investigation, according to police.

(Copyright 2013 by CBS San Francisco. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)