NEW YORK (AP) — A Brooklyn jury has convicted a man charged in a brutal elevator stabbing that killed a 6-year-old boy and left his 7-year-old friend with serious wounds.

Daniel St. Hubert was found guilty of murder Tuesday after pleading not guilty in the death of Joshua Avitto and the attempted murder of Mikayla Capers.

St. Hubert had been living in a homeless shelter when the attack happened in June 2014.

Police say Hubert pulled out a 9-inch knife and started stabbing the two children after telling them to shut up. The kids had just returned from getting ices.

St. Hubert's lawyer said his client was framed. He called the surviving elevator victim and witness "a pathological liar."

St. Hubert faces up to life in prison when he is sentenced.