someone who holds a government office

An official is someone who holds an office (meaning an official position) in an organisation or government. This doesn't have to mean an office room—it can also just mean an important rank. An official in government is called a government official or public official