David Allen George Bohr was charged with murder with a sentencing enhancement for causing death.
Bohr was accused of killing 52-year-old Greg Smith.
According to Irvine police, they received a 911 text asking for help at 2:19 a.m. on Monday. The witness told police he heard Bohr and another roommate arguing before gunshots rang out, police said.
Get Southern California news, weather forecasts and entertainment stories to your inbox. Sign up for NBC LA newsletters.
The roommate continued texting with dispatchers as he locked himself in his bedroom, police said.
When police arrived they found the victim behind the front door and confirmed he was dead, police said. Bohr allegedly stood at the top of the stairs holding a gun to his head, prompting a standoff with officers, police said.
Police evacuated neighboring residences as they continued negotiating with Bohr, police said. SWAT officers and Orange County Fire Authority firefighters got two other roommates out of the residence, police said.
Bohr was taken into custody at 5:09 a.m., according to police.