The shooting happened around 3:00 pm in the area of Walnut and Vine avenues in Winton.
[Ads /]
The Merced County Sheriff's Office says officers had been chasing two men in a vehicle leading up to the shooting.
An officer fired one shot into the vehicle but it is unclear if anyone was hit.
Investigators say a video of the incident shows one of the men put a gun to his head and fire it.
Officials say the man died from his injuries.
The other man in the vehicle was taken into custody.
No officers were injured in the shooting.
[Ads /]
Stay with Action News for updates on this developing story.
For news updates, follow Nic Garcia on Facebook, Twitter and Instagram.