A man who allegedly drove his ute at officers before ploughing into the front of a country police station has died in custody.