Police have arrested two men in the senseless murder of a restaurant chef who was killed for his iPhone.

According to authorities, Alejandro Campos, 21, and Dominick Davis, 20, both of the Bronx were arrested Thursday night.

Police say the pair would regularly canvass the Riverdale section searching for victims to rob who they thought would have iPhones. Early Thursday, the men crossed paths with 26-year-old Hwang Yang and robbed him of his iPhone.

During the attack, the firearm held by Davis accidentally went off, shooting and killing Yang, police said. Both men fled the scene after the shooting.

The duo have since admitted to the slaying, telling police they had planned to put the iPhone on Craigslist to sell it.