A Texas teenager was suspended from his cookie store job after a customer became upset when he paid for a police officer's order.

Zachary Randolph, 18, was suspended from his job at a Great American Cookies mall after he bought a police officer a brownie out of his own wages on Sunday.

The teen from Katy, Texas, said upper management put him on temporary leave for a week because another family complained that he didn't buy their cookies as well.

Randolph said the customers in line who overheard the interaction became upset and threatened to beat him up because he was racist and promised to get him fired.

Scroll down for video

Zachary Randolph, 18, (left and right with his mother) was suspended after buying an officer a brownie while he was working at Great American Cookies at Katy Mills Mall in Texas on Sunday

Another customer allegedly complained that Randolph didn't buy his cookies and became threatening. Randolph was written up for the incident (pictured)

The incident gained national attention after Randolph's mother Tami Kurtz Randolph posted about what happened in a Facebook post on Wednesday.

In a post that has since been shared more than 6,000 times, she wrote: 'Since when does buying a police officer a cookie give anyone else a reason to attack someone.

'And when did a Corporation want to FIRE someone for being KIND, taking what a customer said or did, regardless of how hateful they are.'

Randolph said he was working a normal shift at his job at the Katy Mills Mall when a police officer who worked at the mall placed an order for a $2.75 cheesecake brownie.

The teenager said he wanted to show his appreciation for the official protecting and serving his community.

Speaking to Fox 26, he said: 'He's just a really nice guy and on top of that he has a badge. That's enough for me to buy him something. That's the least I can do.

'A lot of people I know my age don't support police officers. I don't think it's fair.'

A family behind the officer in line witnessed what happened and allegedly became upset when they asked for free treats, and Randolph declined.

Randolph was working at a local Great American Cookies location (stock photo) when the incident happened

Randolph added to Click 2 Houston: 'They were asking if I was going to buy them a cookie. And I told them both, "No. They don't have a badge. I'm sorry."'

Randolph said the situation then escalated when a middle-aged man become upset and threatened him.

Tami added: 'This customer started verbally attacking him, calling my son a racist, and threatened to beat him up. His wife threatened to go back there and slap him.

'The middle aged man sat down his little daughter and tried to come behind the counter to attack him. Thankfully his coworker defused the situation. The man then said "I will get you fired".

Randolph said he removed himself to the back room while his co-workers took care of the angry customers.

The following day he was told in a text to 'bring all of his stuff' into a meeting with management, where he was reportedly told the 'upper managers want him fired' due to the customer's complaint against him.

However, his manager refused to fire him, instead suspended him for a week and wrote him up, according to the Facebook post.

Tami wrote: '(The warning) says "he bought a cookie for a police officer and a customer wanted to physically fight him" it does state if this happens again he will be terminated.'

Great American Cookies at Katy Mills Mall later reversed its decision and offered its apologies to Randolph (pictured with his family after his high school graduation)

However, due to the attention the incident brought, Great American Cookies reversed its decision.

In a statement released to the Houston Chronicle, Biju George, owner and operator of the Great American Cookies at Katy Mills Mall, said: 'On behalf of Great American Cookies Katy Mills, we owe the employee an apology.

'It was never an issue that he purchased a brownie for a police officer, but rather the events that unfolded with another customer in line at the time.

'However, after further review, we realize that the employee was in fact in the right and we continue to reach out to him and his mom to issue an apology.

'The corrective action and suspension was reversed immediately and we hope to connect with him today.'

