File photo of bullet casings.

Police say they arrested a man on suspicion of brandishing a gun and then shooting the ceiling inside a West Long Beach apartment Wednesday night.

The situation began around 8 p.m. when a woman told police she’d been inside the apartment on Santa Fe Avenue near 33rd Street when a man she knew brandished the gun at her, according to the LBPD.

The gunman and another man who’d been doing repair work in the residence were still inside, so officer surrounded the area, LBPD spokeswoman Jennifer De Prez said.

“While officers were on scene establishing a perimeter, they heard what appeared to be the sound of a gunshot inside the residence,” De Prez said.

Soon after the gunshot, both men came out of the home unharmed, and officers arrested the suspected gunman without any problems, De Prez said.

Authorities identified him as Michael Nolasco, with an address at that apartment complex. He was booked on suspicion of shooting into an inhabited dwelling, assault with great bodily injury on a person, and shooting a firearm without a permit.

He’s being held on $250,00 bail, police said.

Detectives are still investigating why he allegedly brandished and shot the firearm.

Jeremiah Dobruck is managing editor of the Long Beach Post. Reach him at [email protected] or @jeremiahdobruck on Twitter.