As his girlfriend , Natasha Martin , slept with the couple 's 1-year-old daughter , the police said , Mr. Palmer forced his way into her apartment in Canarsie , Brooklyn , grabbed a knife from the kitchen and attacked mother and child as they lay in bed .