As Callahan watches the dead body, he takes out his inspector's badge; after contemplating what will happen to him as a result of his actions, he hurls it into the water, before walking away.
He takes out his inspector's badge. Callahan watches the dead body. He hurls it into the water. This is before. He is walking away. What will happen to him as a result of his actions. This is what he is contemplating.