A New York Police Department officer was killed and his partner was wounded Friday in the Bronx in a gunbattle with a heavily armed suspect who was fatally shot, authorities said.

The two officers, both NYPD sergeants, were responding to a 911 call reporting a home invasion. When they arrived, they encountered the suspect, identified by police as Manuel Rosales, 35 years old, of Long Island.

During...