Updated Monday: Revised to include officer's name.

Dallas police have identified the officer who fatally shot a man Friday night in east Oak Cliff.

About 6:50 p.m. Friday, Senior Cpl. Robert McMillin Jr., 50, witnessed a shooting while investigating a property crime in the 300 block of East Brownlee Avenue, near Ramsey Avenue.

McMillin, a 21-year veteran of the force, was in plainclothes and driving an unmarked police vehicle at the time.

When McMillin confronted the gunman — later identified as 24-year-old George Zapata — he identified himself as a police officer and immediately came under fire, authorities said.

The officer returned fire, striking Zapata and ending the shootout.

Four men, including McMillin and Zapata, were taken to hospitals, where Zapata and one of the shooting victims were pronounced dead. The other shooting victim was in stable condition, police said.

Authorities have not released the names of the two shooting victims.

McMillin reportedly wasn't shot; the nature of his injuries has not been released. Police said Saturday that he had been released from Baylor University Medical Center at Dallas and is recuperating at home.

Dallas police officer shot on Alabama arrives at Baylor - alert, smiling, waving @NBCDFW pic.twitter.com/s3uVH2Ys2D — Kevin Cokely (@KevinCokelyNBC5) October 15, 2016

Witnesses told KXAS-TV (NBC5) that gunfire is common in their neighborhood.

"We heard multiple gunshots, and usually we just stay in there because you hear gunshots, like, almost every day around here," Brisalinda Maldonado said.

Staff writer Liz Farmer contributed to this report.