A retirement home resident shot at firefighters who responded to a report of an explosion at the Southern California facility on Monday, killing a veteran fire captain and leaving a second firefighter and another resident wounded.

Investigators believe based on a preliminary investigation that the man, Thomas Kim, had set a fire early Monday morning to draw first responders to his second-floor apartment at the retirement home in Long Beach, south of Los Angeles, and then opened fire, Police Chief Robert Luna said.

The shooting happened shortly after firefighters arrived at the 11-story retirement facility around 4 a.m. and found some windows blown out, activated sprinklers, the smell of gas and a fire that they extinguished, authorities said. Firefighters were searching the building when shots rang out and the two firefighters were hit, Long Beach Fire Chief Michael DuRee said.

The residential tower near downtown Long Beach has 100 apartments for low-income people age 62 and older as well as disabled adults over age 18, according to its website.

Long Beach is a major port city with a population of more than 400,000.