The older brother of a four-year-old boy who was found dead outside a Brooklyn apartment has been charged with murder, officials said.

A 20-year-old man is accused of throwing his much younger brother off the roof of their Brooklyn apartment building.

Police say the victim, who was just four years old, died at the scene.

Shawn Smith was walked out of the 70th Precinct in handcuffs Saturday evening after the NYPD said he confessed to throwing Shimron Smith from the roof of the Nostrand Avenue apartment building around 3:30 in the morning. He has been charged with second degree murder.