Oliver Marion, 37, is charged with felony criminal endangerment.
He did not appear in court on Wednesday because he was intoxicated. Marion will likely be seen in Gallatin County Justice Court on Thursday where a judge will set his bail.
At 12:41 a.m. on Wednesday, police responded to a report of a man yelling and making threats to fight another man on the 700 block of East Mendenhall Street. A witness reported seeing him fire a gun while standing on the balcony of an apartment above businesses.
When police arrived, Marion, irate and shirtless, left the building and walked into the parking lot. He swore at officers and refused to comply with their orders before returning to his apartment, court documents say.