Sheriff officials in Yorktown, Va., were looking for this man who allegedly stole a donations jar from a convenience store. The money was meant for the family of a slain Virginia State trooper who died in the line of duty in Richmond. (Courtesy of York-Poquoson Sheriff's Office)

Gotcha!

Police say surveillance photos pretty much showed the thief’s fingers on the cookie jar, so to speak.

And now authorities said they’ve arrested a 25-year-old man who allegedly stole a donation jar filled with about $50 in small bills from the counter of a convenience store in Yorktown, Va. It was meant for the widow and two children of a Virginia State Police trooper who was shot last month as he responded to a call at a bus station.

On Monday, the York-Poquoson Sheriff’s Office said they had arrested Tyree Burrell of York County.

Sheriff officials in Yorktown, Va., were looking for this man who allegedly stole a donations jar with $50 from a convenience store. The money was intended for the family of a slain Virginia State trooper. (Courtesy of York-Poquoson Sheriff's Office)

The incident happened April 19 about 1 p.m. at a 7-Eleven store in the Edgehill area, authorities said.

The suspect was charged with one count of petty larceny. Sheriff’s officials said they caught him after receiving an anonymous tip from someone in the public who had seen the surveillance photos. It was not known what happened to the money but sheriff officials said they expected that he would be ordered to repay it.

The money was intended to go the family of Virginia State Trooper Chad P. Dermyer, 37, who was killed in the line of duty at a Greyhound bus station March 31 in Richmond.

Police say James Brown III, 34, attacked Dermyer from inches away with a .40-caliber semiautomatic handgun. Brown was fatally shot by two troopers after he shot Dermyer.

The theft of the donations jar generated plenty of comments on social media.

Shawn Newsome wrote on Facebook of the arrest “Give to the poor . . . not to take from needy.” Eames Coleman wrote, “Stealing from a dead cops family . . . Now that’s just wrong. Throw the book at em boys!”

Tyree Burrell, 25, was arrested in connection with the theft of a donations jar meant for the family of a slain Virginia State trooper. (Courtesy of York-Poquoson Sheriff's Office)

Another post from C. Kaye Zens said, “Unbelievable that someone would steal from a widow and her kids, great job catching him.” And another Facebook user, Michael Gardner, said, “Justice is sweet!”