WILLIAMSBURG, BROOKLYN — A Williamsburg shootout left a teenager with a fatal gunshot wound in his head and sent a young man, with a bullet wound in his stomach, racing to the nearby precinct, police said.

Two 19-year-olds and a 21-year-old man were shot on the corner of South Third and Hewes streets at about 12:45 p.m. Wednesday afternoon, said police.

The 19-year-old who had been shot in the head was rushed to Woodhull Medical Center, but doctors were unable to save his life, police said.