PORTSMOUTH, N.H. - A New Hampshire police officer dispatched to the scene of a shoplifting incident paid the thief's tab after learning a woman stole the items to bake her child's birthday cake.

The Portsmouth Herald reports Officer Michael Kotsonis, a 19-year member of the Portsmouth force, responded to a call last week at the Ocean State Job Lots after a woman had stolen cake mix, shortening and "a couple things of frosting."

After investigating the theft and learning the woman's identity, Kotsonis went to her home to recover the items. It was there that he found that the woman was a mother who wanted to bake her child a birthday cake.

Get Breaking News Delivered to Your Inbox

Kotsonis says the mother's actions weren't right, but, "I'm not going to take away a kid's birthday cake." He went back to the store and bought the items.

This is what Portsmouth PD is all about!! Thank you Officer Kotsonis for shining a light on an otherwise darker moment in someone's life. We couldn't be more proud of what you bring to this community!!! Posted by Portsmouth NH Police Department on Tuesday, December 1, 2015

A store employee reported his gesture to the newspaper. Frank Warchol, acting deputy police chief, said he wouldn't have known about it, either, if not for a reporter's call. He said Kotsonis exemplifies the department's mission statement emphasizing community, commitment and compassion.

"I didn't do it for the attention," Kotsonis said Tuesday. "What you do when no one is looking, that's the character of someone."