Lloyd Edward Johnson Courtesy of Hennepin County Sheriff's Office

A man who pleaded guilty to pulling a gun on a group of young Somalis inside a McDonald's in a Minneapolis suburb has been sentenced.

Hennepin County District Judge Philip Carruthers said Friday that 55-year-old Lloyd Johnson, of Eden Prairie, must serve 45 days in the county workhouse and perform 24 days of community service. The judge also ordered Johnson to pay a $500 fine, get rid of all of his guns, and undergo a cognitive skills assessment and mental health evaluation.

Johnson pleaded guilty in March to one count of felony terroristic threats. Prosecutors say one of the Somali teenagers confronted Johnson the night of Nov. 19 in the Eden Prairie restaurant over what she took as an ethnic slight and he responded by waving a handgun at her and other young people.

Police recovered a semi-automatic handgun from Johnson loaded with a 10-round magazine.

Johnson apologized after listening to victim impact statements by two women. He said he was "hungry, impatient and I acted out wrongly."