An armed man suspected of a nightlong crime spree was shot and killed by law enforcement officers in San Ramon early Thursday after he stormed into a convenience store, spent more than an hour inside drinking alcohol, then pointed his gun at police after taking one last swig of beer, authorities said.

Joseph John Baumgardner, 24, who lived in San Ramon and San Jose, was shot by numerous Contra Costa County law enforcement officers outside the 7-Eleven store at 2500 San Ramon Valley Blvd. at about 3:30 a.m., said San Ramon Police Chief Scott Holder.

Baumgardner was shot after a night in which he allegedly stole a car at a San Jose hotel, broke into a Dublin knife and gun store and then used a gun he stole from the business to confront police at the 7-Eleven, Holder said.

The string of crimes began at 10:30 p.m. Wednesday when Baumgardner allegedly stole a Volvo from a guest unloading his luggage at the Fairmont Hotel on South Market Street in San Jose, Holder said.

He then drove the Volvo to a knife and gun store on Dublin Boulevard in Dublin, rammed the car into the business just before midnight and stole a gun and ammunition, Holder said.

At 2:10 a.m., a San Ramon police officer on patrol spotted Baumgardner acting suspiciously inside the 7-Eleven store, where the Volvo was parked out front, police said. The officer learned that the car had been stolen and also received a report that a robbery was in progress, Holder said.

Police from San Ramon, Danville and Lafayette and sheriff's deputies converged on the store near Crow Canyon Road and Interstate 680. Over the next hour, police tried to talk Baumgardner out of the store, without success.

Baumgardner demanded marijuana from police, Holder said. When he wasn't on the phone to officers, he was drinking the store's alcohol, authorities and witnesses said.

"It looked like he was pacing up and down the aisles. It looked like he was shopping," said James Sanos, 22, of San Ramon, who came upon the scene with his friend Ryan Frantz, 22, as the two were heading to a nearby McDonald's.

At 3:24 a.m., Baumgardner walked outside with a can of beer in his left hand and his gun in his right, the witnesses said.

"The police just told him, 'Put the gun down, we just want to help you, you don't want to do this,' pretty much trying to talk him down, and he didn't seem like he was listening," Frantz said.

Baumgardner then took one last swallow from the can, Frantz said. "He tilted it all the way back," he said. "There was nothing left. It was like a scene out of a movie, like he was going to make a final stand."

Baumgardner threw his can to the ground and aimed his gun at the officers, who opened fire, Sanos said.

Baumgardner was pronounced dead at the scene. His gun was recovered. Holder said he didn't know if the weapon was loaded.

The officers and deputies who fired their weapons weren't immediately identified. They were placed on paid administrative leave pending investigations by police and the district attorney's office, a standard procedure after officer-involved shootings.