LOS ANGELES — Los Angeles police shot and critically wounded a man who allegedly pointed a gun at a security guard, hid in a Panorama City apartment complex then led them on a four-block foot pursuit, a sergeant said today.

The incident started at 9:30 p.m. Saturday, at 8311 Cedros Avenue, where the suspect allegedly brandished the gun, then ran into the apartment complex at that address, said Sgt. Yvette Holcombe of the Los Angeles Police Department Mission Station.

Police officers patrolling the area came on the scene shortly thereafter and called in an airship, which located the suspect outside a building in the apartment complex, Holcombe said.

The suspect ran from the complex and officers followed in foot pursuit "quite a distance," to 8636 Willis Avenue "where the officer involved shooting occurred," she said.

The suspect was wounded in the neck, and taken to a hospital, where he underwent surgery and was in critical condition in intensive care, Holcombe said.

That shooting was under investigation at about 10 p.m. when they saw another man with a gun, who then ran into the apartment complex at 8321 Cedros Avenue, she said.

Officers followed him to an apartment, in which he barricaded himself.

The SWAT team was called out and when it was in place the suspect surrendered and was taken into custody without incident at about 1:30 a.m., Holcombe said.

There is a lot of narcotics activity and shootings between rival gang members in the area, so many apartment complexes have hired security guards and police try to patrol the area more frequently, the sergeant said.