An Action for higher spin gauge theory in four dimensions