Two teenage men have been charged with intent to murder after a shooting that took place on the set of a Denzel Washington movie left two security guards with injuries.

The guards were on the set of the sequel to “The Equalizer” in Boston on Saturday when they were struck with gunfire, police spokesman Lt. Detective Michael McCarthy told The Boston Herald on Friday. The two security guards suffered non-life-threatening injuries from the shots and have since been treated and released from the hospital.

Two 18-year-old men, Dionte Martinez and Thomas Perkins, were arrested in connection with the shooting and charged with assault with intent to murder, unlawful possession of a firearm and unlawful possession of ammunition, according to police.

“After a complete and thorough investigation, officers were able to later learn and ascertain the identities of the suspects wanted in connection to the shooting,” police said. “Members of the Youth Violence Strike Force, along with members of the Quincy Police Department, located and arrested the suspects in Quincy.”

Police say nothing was being filmed at the time, and it does not appear that the security guards were targeted in the shooting.