(CNN) — A New York Police Department sergeant has died after a shooting in the Bronx Friday afternoon, according to Robert Mladinich, a spokesman for the Sergeants Benevolent Association of New York City.

Two New York police officers were shot Friday in the Bronx, according to a police department tweet.

The officers were taken to a local hospital. One of them, a sergeant, was critically injured.

The officers were shot while searching for a suspect in connection with a home invasion robbery, law enforcement sources say.

The officers confronted the suspect on the sidewalk outside a home in the Bronx, and shots were fired, a senior law enforcement official said.