SAN JOSE — A busy stretch of downtown San Jose was sealed off for hours Friday after a San Jose State University officer shot and killed a knife-wielding man who reportedly charged at him and his partner just off campus.

The confrontation also involved an officer using a Taser against the man — “to no effect” — which was followed by the deadly force, according to San Jose police, which is investigating the shooting because by a jurisdictional hair, it occurred in the city.

Authorities said the man was taken to Valley Medical Center, where he was pronounced dead. Police were withholding his name until his family could be notified.

Officer Albert Morales, an San Jose Police Department spokesman, said it does not appear the man who died attended the university.

“There is nothing to lead us to believe he is a student,” Morales said.

University police got a call around 11 a.m. reporting sightings of a man walking on campus with large knife, Morales said. Two officers spotted the man and followed him, but by the time they were able to contact him he had already walked off campus to the intersection of South Eighth and San Salvador streets.

Morales said the officers ordered the man to drop the knife, and he attacked them.

“The suspect charged at the officers with the knife,” Morales said.

One officer fired his Taser, and after that didn’t stop him, the second officer “used his firearm in defense of his life and his partner’s life.”

Neither officer was injured. They were interviewed Friday afternoon by San Jose homicide detectives, who will conduct an investigation monitored by the Santa Clara County District Attorney’s Office, which is routine after officer-involved shootings.

Morales would not say how many shots the officer fired. Several people in the area said they heard what they thought were two gunshots.

Elisa Gomez said her 13-year-old daughter was inside an apartment near the shooting and told her by phone what happened.

“She heard the zapping of a stun gun,” Gomez said. “They went to go out and the next thing you know, two gunshots.”

Her daughter said she went out and saw a man on the ground being examined by officers. He was placed on a gurney and taken to the hospital.

Streets around the shooting were blocked off after the shooting, which occurred across the street from the SJSU campus near dorms, the school’s aquatic center and the Events Center. On-campus activity experienced minimal disruption.

Staff writer Mark Emmons contributed to this report. Contact Robert Salonga at 408-920-5002. Follow him at Twitter.com/robertsalonga.