TAUNTON — City Street Crimes detectives say they busted two street-level heroin dealers allegedly using an apartment within walking distance of police headquarters.

The arrests on Thursday, they said, resulted from complaints by neighbors of suspicious activity at unit 11 of 71 Summer St., an apartment house owned by Taunton Housing Authority.

Police said they set up surveillance of the building at 7 p.m. and arrested the two city men after they drove to Pete’s Mart at 370 County St., where the two allegedly engaged in a drug transaction with a third man who had pulled into the parking lot.

A total of 16 grams of heroin in four glassine bags were recovered, cops said.

Both Brian D. Santos, 30, 370 Washington St., and Jarrod Pacheco, 25, 15 Shores St., were charged with possession with intent to distribute heroin, conspiracy to violate a drug law and committing a drug violation near a school.

The Summer Street apartment is located less than 100 feet from Taunton Middle School, police said.

Thursday’s arrests comes less than a week after state troopers on patrol in Taunton arrested two city residents for heroin trafficking. A total of 46 grams of heroin were seized in those unrelated incidents, authorities said.

Taunton Housing Authority Executive Director Colleen Doherty would not comment on the status of the apartment at 71 Summer St. But she did say that any tenant of public housing in the city is responsible for the guests who visit their homes.

Doherty said allowing a person with a criminal record to visit constitutes a lease violation that could result in an eviction proceeding.

The bottom line, Doherty said, is that “they’re responsible for their guests.”

Police did not arrest the man they said was going to buy heroin from Pacheco and Santos. They said he admitted he has an addiction problem and acknowledged he needs to get it under control.

There have been 134 reported heroin overdoses and nine related deaths in Taunton since the beginning of the year, according to police.