Bernhard Goetz, the “subway vigilante” who set off a national debate about crime and race after he shot four black men in New York in 1984, has been arrested on drug charges.

Goetz, 65, was arrested about 6:30 p.m. Friday in New York after he sold $30 worth of marijuana to an undercover officer outside his Manhattan apartment, police said.

Goetz was arrested after he led the officer to his apartment building, went to get the pot from his apartment and sold it for $30, New York Police Department Det. Annette Markowski told the Los Angeles Times.

Goetz was arrested on suspicion of criminal sale of marijuana, criminal possession of marijuana and unlawful possession of marijuana, Markowski said.

Markowski said the buy-and-bust operation had not targeted Goetz.

“Just ended up being that way,” she said.

On Dec. 22, 1984, Goetz shot four black men who he said were trying to mug him while he was riding the subway to a Christmas party. The incident garnered international attention, and Goetz, a lanky white man with glasses, became a household name.

Goetz’s attorney, Barry Slotnick, once said that Goetz “was the most recognized face in the world.”

“He was loved or hated by everyone who came in contact with him -- there was no in between.”

Goetz said in court that on that day on the subway, one of the youths asked him for $5 and then all four surrounded him. Goetz, who said he had been mugged twice before, said in court that he snapped and “was out of control.” He started shooting within 30 seconds of getting on the train.

In a criminal trial, Goetz was acquitted of attempted murder and assault, but convicted of illegal gun possession. He served 250 days in jail.

The saga largely faded from the limelight but has occasionally reappeared in the media since last year because of similarities between the case and the fatal shooting of Trayvon Martin by George Zimmerman in February 2012 in Sanford, Fla. Zimmerman also was acquitted.