DURHAM, N.C. (AP) — A North Carolina teen has been charged with shooting, robbing and carjacking a man who was apparently lured with an online offer of a cell phone sale.

The Durham Police Department said in a news release that the attack happened Tuesday afternoon after the 19-year-old victim arranged to meet with two people to buy a cell phone through OfferUp.

Police say the victim was then robbed of his wallet, phone and 2007 Toyota Camry. The victim was shot once and pistol whipped. He was taken to the hospital with serious injuries.

Officers spotted the vehicle, attempted to stop it, and then the suspect crashed into a patrol car.

Joseph Demario Cates, 17, was charged as an adult with counts including robbery and assault with a deadly weapon. A second suspect is still at large.

A police spokeswoman didn’t immediately respond to a question about whether Cates has an attorney.