A cool-headed clerk at a South Buffalo convenience store knocked a pellet pistol out of a would-be robber’s hand and detained the thwarted thief until police arrived, according to a Buffalo police report.

A male clerk was working in the 7-11 at 975 Abbott Road, near Kimberly Avenue, on Friday when a woman entered the store, displayed a handgun and said, “Give me all the money.”

The clerk slapped the weapon from the woman’s hand and restrained her until South district officers showed up to arrest her. Pamela Giambelluca, 26, of South Park Avenue, is charged with first-degree robbery.

A 7-11 employee told The News today that any comment on the incident would have to come from corporate headquarters.