“I can only imagine what these parents are going through,” Mr. Obama said from the White House Rose Garden, “and when I think about this boy, I think about my own kids, and I think every parent in America should be able to understand why it is absolutely imperative that we investigate every aspect of this and that everybody pulls together, federal, state and local, to figure out how this tragedy happened.”

Mr. Obama said he is glad the Justice Department is investigating the shooting and that Florida Gov. Rick Scott has formed a task force to investigate the incident as well. The president suggested he was sympathetic to the notion that the shooting was racially motivated.

“You know, if I had a son, he’d look like Trayvon,” Mr. Obama said.

“All of us have to do some soul-searching to figure out how does something like this happen,” he continued, “and that means that we examine the laws and the context for what happened as well as the specifics of the incident.”

Obama’s comments come at a time when interest in the case is growing and leading to significant changes in the Sanford, Fla. police department. Florida Gov. Rick Scott has assigned a task force to review the “stand your ground” law which has come into question in recent days.