Louis Lanzano, Associated Press
Police officers walk through a cordoned-off section surrounding the Marriot Marquis Hotel where a shooting took place in the hotel's passenger drop-off area Thursday in New York.

NEW YORK — A plainclothes cop chased a Times Square scam artist through sidewalks crowded with holiday shoppers and tourists Thursday, exchanging gunfire that shattered Broadway theater and gift shop windows, before killing the suspect near a landmark hotel, police said.

No one else was injured. The 25-year-old suspect was believed to be conning tourists along Broadway and 46th Street when he was recognized by a sergeant who works on a task force that monitors aggressive panhandling, chief NYPD spokesman Paul Browne said.

When the officer approached, the man took off running the streets and through the Marriott Marquis hotel's passenger drop-off area, Browne said. The sergeant pursued, and the man turned and fired with a Mac-10 machine pistol that held 30 rounds; he got off two shots before it jammed, Browne said. The officer returned fire, killing the suspect, Browne said. It's not clear how many shots he fired.

Dave Kinmahan, a tourist from Boston, was parking his car in a spot below street level at the hotel when he saw one man shooting another.

"I was 20 yards away," Kinmahan said. He said he thought, "Is this real or this a movie?"

The hotel is located in the Broadway theater district and near the heart of Times Square. The area includes the Minskoff Theatre, home to the popular show "The Lion King," and bullets hit the theater ticket box near the Marquis, cracking the window.

Dozens of police officers surrounded the popular hotel, taping off the valet parking area as tourists and holiday shoppers stopped to watch the commotion. Kathleen Duffy, a spokeswoman for New York City Marriott Hotels, said the shooting took place in a taxi pickup and drop-off area.

The slain man was not immediately identified. Officers suspected him and another man were working a scam in which they would approach tourists, ask them their names, then write their names on the CDs and demand payment of $10.

The 25-year-old suspect had been wanted for assault in the Bronx, but the officer approached him because he was recognized as an aggressive panhandler, authorities said. There were 27 live rounds left in his gun, authorities said.

Duncan Stewart, a Broadway casting director for National Artists Management Co., has a 12th-floor office that overlooks Times Square. He said he was on the phone when he heard three loud pops.

"With the echo, I didn't quite know what it was, but within five minutes, there were cars, police sirens, cops running," he said. "It was chaotic."

Stewart has worked in Times Square for the past three years. He's gotten used to seeing the weird and wacky, but almost never anything violent.

"It's bizarre. It's one thing to see the Naked Cowboy day after day in Times Square, but a shooting is something different altogether," he said.

New York City's crackdown on panhandling began under former Mayor Rudy Giuliani, when "zero-tolerance" policing was instituted to curb quality-of-life offenses. Panhandling, public drinking, public urinating, graffiti and disorderly conduct were all part of the crackdown as a way to bring order to the city by sending the message that no crime would be tolerated.

When Mayor Michael Bloomberg first took office in 2002, one of the first things he did was launch "Operation Clean Sweep," aimed at those same quality-of-life problems. By the end of Bloomberg's first term, the program had had resulted in some 33,000 arrests and 350,000 summonses.

Police Commissioner Ray Kelly has said the NYPD "will assert the public's right to be left alone by aggressively going after quality-of-life violators."

Associated Press writers Sara Kugler, Colleen Long, Adam Goldman and Chad Roedemeier contributed to this report.