According to Phoenix police, the unidentified man went through the drive-thru of a fast-food restaurant at about 2:30 a.m. Friday and lost his cellphone.
When he realized the phone was missing, the man returned to the restaurant, believing that employees had taken the device. The man went back to the drive-thru and "tapped on the window with a gun, demanding his phone," Phoenix police spokesman Sgt. Steve Martos told the Arizona Republic.
After leaving without the phone, the likely-impaired man crashed his car into a tree and took shelter at his apartment in a nearby complex.
No one could communicate with the man after he entered the apartment and it is believed that he was sleeping.
The standoff ended shortly at about 8:15 a.m. after the man woke up and surrendered to police. He was arrested on suspicion of aggravated assault.
Workers found the missing phone near the drive-thru.