(VIDEO: The story above details what happened on the day of the shooting, including police body camera footage – this report aired on Aug. 14, 2018.)

LAS VEGAS (AP) — A former security guard has been sentenced to 16 to 40 years in state prison for firing gunshots inside a busy Las Vegas clothing store where he worked before he was wounded by police.

Mohamed Abdalla Mahmoud was sentenced Thursday after pleading guilty in May to felony attempted murder and assault charges in the August 2018 shooting.

Police say none of the 40 people in the store was injured when the 38-year-old Mahmoud unleashed 16 shots after an argument with the store manager. He then reloaded his handgun and fired shots at police outside.

Prosecutors said Mahmoud was a married U.S. citizen who was born in Cairo, Egypt, and lived in the rural Nevada community of Pahrump before moving to Las Vegas in 2018. His gun was legally purchased.