LOS ANGELES (AP) - A Los Angeles man was charged Thursday with the stabbing death of a 3-year-old girl randomly attacked just steps from her parents at their workplace.

Ricardo Utuy, 34, was charged with murder in the girl’s death and attempted murder a separate attack on a woman in March. He was ordered held on $3 million bail.

Utuy’s arraignment had been set for Thursday, but it was postponed until Dec. 7. It’s unclear if he has an attorney.

The 3-year-old girl, whom police called “Baby Ruby,” was with her parents Monday at the clothing factory where they and Utuy work when she left her mother’s side to give her father a cookie.

That’s when prosecutors say Utuy attacked the girl, stabbing her multiple times with a knife.

The wounded girl made it back to her mother with Utuy close behind her before he fled, prosecutors said.

Although 911 was called, the girl’s mother flagged down an ambulance faster, and the girl was rushed to the hospital, where she died of her injuries, Los Angeles Police Capt. Julian Melendez said.

He said Utuy had been working at the factory for a couple weeks and hadn’t interacted much with the girl’s parents.

The attempted-murder charge against Utuy stems from an attack on a woman at another factory in March. Prosecutors said Utuy stabbed the woman and fled.

Melendez said the woman reported the stabbing to police at the time, but investigators had very few details about Utuy and were unable to track him down.

Although the woman came forward after police released a photo of Utuy, Melendez said Utuy separately told investigators he had previously stabbed a female co-worker and a man named Alex. Detectives are looking for the man.

“It’s a win to get somebody like this off the streets,” Melendez said.

As for the motive in the girl’s stabbing, investigators have said Utuy was acting strangely beforehand, talking and laughing to himself, but they didn’t immediately know why.