The ball hit the post and rebounded onto Carlos and then back into the goal.
In this situation, the ball struck the goal post and ricocheted onto Carlos, who was in its path, before coming to rest again in the goal.