A suburban Minnesota police officer who killed a black driver reacted to the man's gun, not his race, his attorney said Saturday, giving the most detailed account so far of why the officer drew his own weapon.

St. Anthony Police Officer Jeronimo Yanez was reacting to "the presence of that gun and the display of that gun" when he opened fire on Philando Castile, Minneapolis attorney Thomas Kelly told The Associated Press. He declined to elaborate on how Castile displayed the weapon or what led up to the deadly traffic stop.

Castile's girlfriend Diamond Reynolds was in the car and streamed the immediate aftermath of the shooting live on Facebook. She has said Yanez shot Castile several times after he told the officer he had a gun and a permit for it and then reached for his wallet.

Yanez "was reacting to the actions of the driver," Kelly said. "This had nothing to do with race. This had everything to do with the presence of a gun."

Less than 24 hours after the shooting, Gov. Mark Dayton declared that police likely wouldn't have fired if Castile had been white. Dayton later said he stood by his statement, even though he angered some in law enforcement.

 lavish reynolds diamond police shooting minnesota

Diamond Reynolds, the girlfriend of Castile, was in the car and streamed the immediate aftermath of the shooting live on Facebook. (Jim Mone/Associated Press)

Whether or not a black man is legally in possession of a gun might not matter in the tense moments of an encounter with an officer, said Philip Smith, president and founder of the National African American Gun Association.

"They're not getting any kind of the benefit of the doubt," Smith said.

Yanez 'overcome with sadness'

Kelly said Yanez, who is Latino, is "overcome with sadness" over the shooting in the St. Paul suburb of Falcon Heights, a mostly white community of 5,000 that is served primarily by the nearby St. Anthony Police Department.

Yanez and an officer who was with him, Joseph Kauser, were put on administrative leave, as is standard, authorities said. Both are four-year veterans of the St. Anthony force.

Yanez's position with the 23-member department was his first in law enforcement, after jobs in security and doing contract immigration compliance work, Kelly said. The 28-year-old has a wife and child and graduated from Minnesota State University Mankato with a degree in law enforcement in 2010.

Police Shooting Minnesota

Demonstrators create a display during protests in Minnesota on Thursday. Several videos, including squad car video, have been collected, though St. Anthony officers don't wear body cameras, authorities said. (Richard Tsong-Taatarii/Star Tribune via AP)

"He's a very sensitive officer, he cares about people," Kelly said. "He would drive around and stop and talk, and get out of the car, meet people and say hello."

In 2014, the department selected Yanez to be part of a special crime prevention unit, whose members were hand-picked based on "their initiative, creativeness and varied backgrounds in law enforcement," according to the department's annual report.

About the same time, Yanez joined the Minnesota chapter of the National Latino Peace Officers Association, where he worked to raise money for and connect with Latino youth, said John Lozoya, one of the organization's founders.

Lozoya recalled him as an active, passionate and approachable member.

"This man had the well-earned respect of his colleagues," Kelly said.

Yanez is co-operating with state investigators, who interviewed him within 15 hours of the shooting, Kelly said.

Castile pulled over for broken tail light

Several videos, including squad car video, have been collected, though St. Anthony officers don't wear body cameras, authorities said.

In the video she streamed on Facebook Live, Reynolds describes being pulled over for what the officer told her was a "busted tail light." The video shows her in a car next to a bloodied Castile slumped in a seat.

A clearly distraught person who appears to be a police officer stands at the car's window, tells her to keep her hands up and says: "I told him not to reach for it. I told him to get his hand out."

"You shot four bullets into him, sir. He was just getting his license and registration, sir," Reynolds calmly responds.

Philando Castile's girlfriend speaks0:59

The following night, five police officers were fatally shot and others were wounded during protests in Dallas over Castile's killing and the fatal police shooting of 37-year-old black man Alton Sterling in Baton Rouge, Louisiana, after a scuffle with officers outside a convenience store. Authorities identified the Dallas shooter as an Army veteran who was later killed by police.

Sterling's and Castile's families denounced the attack on the Dallas officers.