MIAMI GARDENS (CBSMiami) – Police are investigating after a child was found inside a Miami-Dade trash can in Miami Gardens.

Police say the 3-year-old girl  was transported to Joe DiMaggio Children’s Hospital.

READ MORE: USF Tees Up Plans for Football Stadium

“Nobody in this world would expect that he would do that like never show that sign that he would do that,” said a family member who did not want to give his name.

That man says his 18-yr-old family member, who is mentally unstable, is responsible for beating his niece and leaving her to die inside a neighbors recycling bin.

It happened around 5 p.m. Thursday at his mother’s home near Northwest 27th Court and 201st Terrace.

According to police, the child was found in the area of 20100 Northwest 27th Circle.

The man says his mother was watching his niece with the 18-yr-old present.

“When she looked back she don’t see her,” he said. “She started checking the room, was checking the room she don’t see the other kid.”

READ MORE: Mater Lakes Academy In NW Miami-Dade Calls School Threat 'Non-Credible'

An eyewitness who lives a block over says he heard cries outside his home, and when he went to look, he saw the girl inside a blue bin with the man hitting her in the head with a brick.

“She was in the bin and she was bleeding on the side of her head,” said witness Jose Sotomayor. “Thank God I was able to save her life.”

He says the man took off back to the house leaving the girl behind. He was taken into custody by police.

Miami Dade Fire rescue responded and took the girl to a nearby hospital where she’s listed in critical condition.

Another family member came home and said the 18-year-old had been having breakdowns all day and was giving the family some trouble.

They never said what he suffered from but they did tell us he was on medication.

MORE NEWS: Florida Democrats Want Budget Priorities To Be More 'People Centered'