A Minnesota man who pulled a gun on a group of teens at a McDonald's in Eden Prairie was sentenced to 45 days in jail Friday, KARE reported.

>> Read more trending news

Lloyd Edward Johnson, 55, was fined $3,000, must also perform 24 days of community service and will be on probation for three years, the television station reported.

According to a plea agreement reached in Hennepin County Court, Johnson’s

felony charge of terroristic threats can be dropped from a felony to a misdemeanor if he follows the guidelines of his sentence, which include surrendering his guns and submitting to a mental health evaluation, WCCO reported.

Johnson was arrested Nov. 24, 2018, after an incident Nov. 19 at the McDonald's

Jihan Abdullahi, 17, said she was trying to pay for her order with an app on her smartphone but the clerk was having trouble processing the order, the Star Tribune reported.

A confrontation at a McDonald's in Minnesota led to the arrest of a 55-year-old man.

Credit: Joe Raedle/Getty Images

icon to expand image

Credit: Joe Raedle/Getty Images

Abdullahi said Johnson said, "You were probably trying to pay with EBT (electronic benefits transfer)."

The teen and her friends confronted Johnson, and in a 45-second cellphone video that went viral, the man appeared to be pulling a gun on the group before leaving the restaurant, WCCO reported.

In court Friday, Johnson apologized to the victims, the television station reported.

"That night I was hungry, I was coming home from work, I was impatient and I just acted out," Johnson said. "I never meant to hurt anybody. I apologize just heartfelt, profusely for that. I just wish I could take that all back.”