A 17-year-old robbery suspect shot and injured an off-duty Marion County sheriff's deputy at a northwest-side IHOP restaurant, Indianapolis police said Tuesday.

Brandon Nickens was identified as the person who shot Sgt. David Clemons at IHOP early Saturday, IMPD said in a news release. He has been charged with attempted murder and attempted robbery resulting in serious bodily injury.

A second suspect, Javentay Chapman, 18, was charged with attempted robbery resulting in serious bodily injury and battery by means of a deadly weapon.

Clemons had been working as an off-duty security guard when the shooting happened around 1 a.m., police and company officials said.

He was shot after the two suspects tried to rob the restaurant and pointed a gun at an employee, said IHOP spokeswoman Stephanie Peterson. She said the deputy fired a shot at the suspect and the robber fired back, striking him in the leg. The sheriff's office, in a tweet, said Clemons and Norris were attempting to stop a "robbery in progress."

Clemons was taken to a hospital in fair condition, treated for a gunshot wound to the leg and released, according to a tweet from the sheriff's office. Another deputy, Entwan Norris, was unharmed.

Peterson said 10 customers were in the restaurant at the time and no one else was injured.

Call IndyStar reporter Crystal Hill at 317-444-6094. Follow her on Twitter: @crysnhill.