FRAMINGHAM — A shooting just before midnight Friday on Second Street left two men dead, according to police and the Middlesex district attorney’s office.

The shooting occurred shortly after 11:30 p.m. said Framingham Chief of Police Steven Trask and District Attorney Marian Ryan in a statement released Saturday morning.

“The preliminary investigation suggests this was an isolated incident,’’ the statement said.