The Framingham Police SWAT officer who fatally shot a man while serving a search warrant this morning may have done it accidentally, a family friend said outside the courtroom today.

The Framingham Police SWAT officer who fatally shot a man while serving a search warrant this morning may have done it accidentally, a family friend said outside the courtroom today.

Dwayne Barrett, of Framingham, described Eurie Stamps as "a very good man, the type of man who'd give you the shirt off his back. This shouldn't have happened."

Stamps, 68, was in his 26 Fountain St. house as police served a drug warrant there at about 12:30 a.m. He was fatally shot by an officer, although Barrett said authorities told him the officer accidentally shot his weapon.

Stamps was taken to MetroWest Medical Center, where he was pronounced dead.

Joey Fisher, who lived upstairs from Stamps and his wife, Norma Bushfan Stamps, said he was trying to make sense of the shooting given his neighbor's gentle demeanor.

Fisher described Stamps "as straight-laced as they come." He said Stamps was a retired MBTA worker.

Police did arrest two men as a result of the drug warrant, according to authorities. Joseph Bushfan, 20, of 26 Fountain St., and his cousin Devon Talbert, 20 - who lives in Boston with his parents, according to his lawyer - were charged with possession of cocaine with the intent to distribute, conspiracy to violate the state's controlled substances law, and a school zone violation.

Both men pleaded not guilty today at their Framingham District Court arraignment. Judge Robert Greco released Talbert without bail. He ordered Bushfan held on $5,000 bail on his new case but revoked his bail on an open armed robbery case in Middlesex Superior Court as well as open larceny cases in Framingham and Natick district courts.

Barrett is a friend of Bushfan's. He said Stamps is Bushfan's stepfather.

The shooting is being investigated by the Middlesex District Attorney's office and the Massachusetts State Police.

Authorities aren't releasing details of the shooting.

Editor's note: The spelling of Eurie Stamps' last name has been corrected.

Additional reporting by Michael Morton. Return here later for more information as it becomes available.