New York (CNN) -- Police say a Brooklyn boy was crushed to death by an electric gate at an apartment complex.
Witnesses say 12-year-old Yakim McDaniels was playing a game of chicken with his friends on Sunday afternoon.
They say the kids were triggering the sensors to get the gate to go up, then seeing who could hang on the longest.
Yakim's hand got stuck and he was crushed when he reached the top.
The management company for the site says it will pay for the boy's funeral as it looks into complaints that security did not do enough to protect the children.