An off-duty Richmond, VA, police officer was wounded and a teenage gunman was killed when the two exchanged fire during an early morning attempted robbery at a shopping center, police said.

The shooting occurred as two groups of males met "to facilitate the sale of an electronic gaming system," Chesterfield, VA, police said in a release.

Major Frank Carpenter said the off-duty Richmond officer was accompanying the party selling the game system, and the teenager who was killed was the alleged would-be robber, reports the Richmond Times-Dispatch.

During the attempted transaction shortly after midnight at the Chestertowne Shopping Center, the teenager pulled out a pistol, which resulted in an exchange of gunfire between him and the off-duty police officer, police said.

The teenager was shot and died at the scene. The off-duty Richmond officer was shot during the exchange of gunfire and was treated and released from a local hospital. No other people were injured, police said.