According to Deadline, police were called to secure the area after gunmen reportedly chased production staff on the set of the NBC cop drama, which stars Lopez as Harlee Santos, a single mother and New York Police Department (NYPD) detective forced to work in the FBI's anti-corruption task force.

The 47-year-old actress/singer had reportedly already left for the day when the unidentified men invaded the set of the show at its Brooklyn, New York, location.

Editors at the news outlet report chaos ensued after shots were fired, and police were subsequently called to deal with the real-life drama on the set of the show which centres on a group of corrupt New York Police Department officers.

While Lopez apparently just missed the fracas, recurring guest star Kathryn Kates was reportedly still on set, and two female PAs were allegedly being chased by the perpetrators.

Police quickly took control of the situation and sources close to the production confirmed to Deadline that nobody was injured in the incident. However, cast and crew members are said to be shaken.

Shades of Blue, which also stars Ray Liotta and The Sopranos' Drea de Matteo, is currently filming its second season for a midseason premiere.

The NYPD has yet to comment on the incident.