A 14-year-old Bronx boy who may have been teased and robbed by a 14-year-old schoolmate stabbed him to death on Wednesday afternoon outside the school they attended, the police said.

The boys were students at Intermediate School 117 (Joseph H. Wade) in the Mount Hope neighborhood. The stabbing took place around 3 p.m. in front of the school building at the end of the school day, the police said.

The wounded boy, Timothy Crump, who was stabbed three times in the torso, was taken to Bronx-Lebanon Hospital Center, where he died. A black-handled knife was recovered at the scene, the police said. The police arrested the schoolmate, who was identified as Noel Estevez of the Highbridge section of the Bronx. He was charged as an adult Wednesday night with second-degree murder and second-degree manslaughter.

Several boys who said they saw the attack said that the victim confronted the boy who had the knife as he was leaving school, punching him and kneeing him in the nose. The suspect pulled out a knife and stabbed Timothy as teachers and school safety officers ran over to stop the fight, they said.