CYPRESS, TX — A man who tried to rob another man at gunpoint in a northwest Houston suburb was shot Sunday evening.

Harris County Precinct 4 Deputy Constables were called to the 23900 block of Creek Ridge Drive in after residents in the area reported hearing gunshots. (Want to get daily updates about traffic news and other events going on in your area? Sign up for the free Houston Patch morning newsletter.) When deputies arrived, they found a black man, identified as Derek Cooper with two gunshot wounds to his abdomen.

Investigators learned that the person who shot Cooper was trying to sell him a cellphone he'd advertised on Craigslist. The victim met with Cooper and a juvenile at that location for the exchange of the phone for money, when suddenly the juvenile pointed a handgun at the complainant and demanded all his money.

The victim handed over the phone and money, and then the juvenile and Cooper demanded all he had in his vehicle. The man told investigators he went to his car, grabbed his own handgun and fired two rounds, hitting Cooper twice.

The juvenile ran off, but was quickly caught by deputies, who were responding to the area.

Derek Cooper was arrested, and charged with robbery, and is in the hospital and will be booked into the Harris County Jail upon his release, according to the Harris County Pct. 4 Constable's Office.