Authorities say two police officers have been shot and wounded by a gunman they encountered in the stairwell of a public housing project they were patrolling, and the gunman has killed himself.

The shooting happened Thursday at the Melrose Houses complex in the Bronx, a few miles from where the mayor was delivering his State of the City address.

Police say three officers were on the sixth floor when they encountered two people. One person pulled a gun and opened fire, hitting one officer in the face and the other in the abdomen, before running into an apartment on the seventh floor. The third officer wasn't hurt.

Police say officers responding to the scene found the gunman in the apartment dead of an apparently self-inflicted gunshot wound. Weapons were found.