Police officers fatally shot a 31-year-old Bronx man on Wednesday afternoon after they were called to his home by his landlord and the man confronted them with a knife and what turned out to be a toy gun with a laser, the authorities said. It was the first shooting involving a New York City officer to be captured on police body cameras.

The police were summoned to the apartment, near Seton Falls Park, around 4 p.m. after the landlord reported that he had not seen his tenant in some time. The landlord escorted the first officers who arrived to the man’s third-floor unit and unlocked the door for them.

When they went inside, the man was clutching a small knife in his left hand and hiding his right hand behind his back, Carlos M. Gomez, the chief of department for the New York Police Department, said at a news conference late Wednesday.

The two officers repeatedly asked the man to drop the knife but he refused, Mr. Gomez said. After pleading with him, the officers noticed that he was gripping what appeared to be a laser-mounted pistol.