LAPD Sgt. Dino Caldera said that officers had gone room-to-room in the building, searching for the gunman.

"Officers responded … to what they believed at that time was an active shooter-site type of situation," he said. "So they used those kind of tactics to go into the building and clear the rooms as they entered."

The suspect put his hands up when confronted by police and was arrested. He was expected to be booked on a charge of attempted murder.