Two police officers on patrol inside a housing project in the Bronx were shot Thursday night as Mayor Bill de Blasio gave his State of the City speech.

One officer reportedly sustained a graze wound to the face. The other officer, reportedly a female, was struck in the torso, the Daily News reported.

"The officers were conducting a vertical patrol in the stairwell when they encountered two individuals," first deputy comissioner Ben Tucker said at a press conference at Lincoln Hospital around 10 p.m. Thursday night. "One of those individuals fired at our officers. The suspect then fled to an apartment on the seventh floor."

Inside the apartment, police "discovered several individals, as well as a suspect who was dead of an apparent self-inflicted gunshot wound," Tucker said. A semi-automatic weapon and a shotgun were recovered from the apartment.

Several individuals were taken to the 40th Precinct for the investigation.

The 40th Precinct officers were shot inside the Melrose Houses project at 320 East 156th Street while conducting a drug-related investigation, according to the Daily News. 

Both officers had two years on the force and were reportedly taken to Lincoln Hospital.

"Thank god, so far in both cases their condition is good," Mayor de Blasio said at the press conference in the hospital. "Both officers have been alert and communicating, so we are praying for the best here."

The motive for the shooting was unknown. The officers involved in a routine patrol at the time of the shooting.

The officers and the deceased suspect's identities were withheld pending family notification.