Two public safety officers at a New York City housing complex were shot Monday before the suspect barricaded himself inside an apartment and took his own life, police said.

New York Police Department (NYPD) officers responded to a wellness check at a building in the Co-op City complex just before 11: 45 a.m., the NYPD told Fox News Digital.

Upon arriving at the scene, officers found two Co-op City public safety officers suffering from gunshot wounds.

Both were transported to a local hospital in stable condition.

The suspected shooter had barricaded himself inside a nearby apartment. When NYPD officers breached the unit, they found him dead from an apparent self-inflicted gunshot wound, according to police.

Investigators recovered a firearm at the scene. No NYPD officers were injured during the incident, and an investigation remains ongoing.

Co-op City comprises 15,372 residential units across 35 high-rise buildings and seven town house clusters consisting of garden and duplex apartments, according to its website.

Fox News Digital has reached out to Co-op City management for comment.