SAN LEANDRO — A heated argument over drinking in a parking lot at a local bowling alley last weekend led to a security guard narrowly avoiding being hit by a car, a shooting and a police officer being kicked in the face, police said Wednesday.

Just after 10 p.m. Saturday, officers responded to Manor Bowl at 887 Manor Blvd. in San Leandro for a report of an assault with a vehicle and shots being fired, San Leandro police Lt. Robert McManus said.

A licensed, armed and uniformed security guard hired by the bowling alley told police he and his partner approached five intoxicated males who had been in the parking lot drinking alcohol.

When the guards ordered the men to leave, an argument ensued between the two groups, McManus said. As the men began to get into a silver, four-door Honda Civic, one of them grabbed a can of beer and threw it at the 44-year-old security guard, who told police he ducked to avoid being hit in the head.

The five males got into the Civic and the driver, who police said had thrown the beer can, took off at a high rate of speed toward the security guard who had ducked the can.

Just a few feet before the Civic would have hit the guard, the officer said he fired a shot at the car in self-defense, McManus said. The Civic fishtailed, took off and fled on Manor Boulevard toward Farnsworth Street.

Witnesses at the scene confirmed the security guard’s account and said the group was verbally abusive to the officers. Some of the incident was captured on video by the bowling alley’s surveillance camera.

At 11:20 p.m., a few blocks from the bowling alley, a resident in the area of Alexandria and Swenson streets dialed 911 to report a suspicious vehicle that matched the description of the vehicle used in the assault, McManus said.

Officers responded, found the car parked near that intersection and detained five people in the car, including the driver, who police identified as John Nguyen, 18, of San Leandro.

Witnesses brought to the scene, including the security guard who was almost hit, positively identified Nguyen as the person who tried to run him down, police said.

During an interview with officers, the security guard’s partner told police that he saw Nguyen reach into his waistband during the argument and that it appeared he was armed with a gun. Police did not find a firearm during the arrests.

As police conducted their investigation, McManus said, Nguyen attempted to kick out the rear windows of a police car as he sat in the back. When officers attempted to put Nguyen in a restraining device, he kicked an officer in the face. The officer suffered minor injuries but was expected to recover.

The assault on the police officer was caught on the officers’ body cameras, McManus said.

Prosecutors charged Nguyen with one count each of felony assault with a deadly weapon, felony assault on a police officer and felony assault on a security guard. The case remained under investigation by police Wednesday and will be reviewed by the Alameda County District Attorney’s office.

Jail records show Nguyen posted a $55,000 bail and was set to appear in court for the case March 9 at the Hayward Hall of Justice.

Contact Natalie Neysa Alund at 510-293-2469. Follow her at Twitter.com/nataliealund.