Police said two women who were arrested at the scene were involved in the incident.

Jasmine Keashun West, 18, and 20-year-old Ashley Monee Smith are each charged with aggravated robbery with a deadly weapon, police said. Harris County court records show Smith also is charged with tampering with evidence because she hid a gun.

Police said the deputy and his brother went to the complex to meet a woman. After they arrived and were sitting in their car, Brown approached them and tried to rob them at gunpoint. Fearing for his safety, the deputy pulled out his firearm and shot Brown.