During questioning, he confessed to killing the child by smashing him against the floor,' a police officer said.