A father was holding his 8-month-old daughter in his arms Thursday when he was arrested and charged with selling heroin at a Central Islip street corner, police said.

Tyreek Langs, 23, of 2 Casa Ct., was charged with criminal sale of a controlled substance, criminal possession of a controlled substance and endangering the welfare of a child.

Langs came out of a home on Peters Boulevard at 3 p.m. with his daughter in his arms, police said, and walked toward the intersection of Kelly Avenue.

Suffolk detectives were conducting surveillance at the time, police said, and arrested Langs when they observed him selling heroin to a waiting drug buyer.

The child was later released to her great-grandmother, police said, and Child Protective Services was notified.

No information was available from police as to whether the drug buyer was also arrested.

advertisement | advertise on newsday

Langs, who has prior convictions on drug and resisting arrest charges, was to be held overnight at the Fourth Precinct for arraignment Friday in First District Court, Central Islip.

Editors note: This story has been changed to correct Tyreek Langs' address.