TOPEKA, Kan. — A man with a history of theft and weapons convictions gunned down two police officers investigating possible drug activity in a Kansas grocery parking lot, and was later killed after an armed standoff, authorities said Monday.

Kyle Smith of the Kansas Bureau of Investigation identified the man who opened fire on Topeka police Cpl. David Gogian, 50, and Officer Jeff Atherly, 29, on Sunday night as 22-year-old David Tiscareno of Topeka.

Shawnee County Sheriff Herman Jones said Tiscareno was seated behind the driver’s seat of a car stopped in the parking lot of a Topeka grocery store when police ordered the occupants to get out. After shooting two of the three responding offers, Tiscareno got back into the car and drove from the scene. The third officer returned fire, Jones said.

“There were people inside the store,” Jones said. “There were residents who saw this going on. There were people driving. There was a multitude of witnesses there.”

Gogian and Atherly were shot in the head, according to Topeka police Chief Ronald Miller.

Authorities, based on a tip, found Tiscareno holed up early Monday at a house about a mile away. When negotiations broke down, Kansas Bureau of Investigation agents fired tear gas inside. Tiscareno then emerged from the home with a gun and officers opened fire, according to the Shawnee County sheriff’s office, which is leading the investigation.

Smith said investigators believe Tiscareno fired a shot outside the home before authorities returned fire. Tiscareno was declared dead at a hospital.

Online court records show Tiscareno was charged in September 2008 with one count of theft of less than $1,000. He pleaded no contest in April 2009 and was sentenced to 12 months of supervised probation.