WASHINGTON (AP) — The Senate has approved President Barack Obama's nominee to serve as U.S. ambassador to Afghanistan.

On a voice vote Tuesday night, lawmakers backed the choice of Peter McKinley, a career foreign service officer who currently serves as deputy ambassador in Kabul.

McKinley has been an ambassador to Colombia and Peru and a deputy chief of mission to the European Union in Belgium.

McKinley will become ambassador amid Taliban attacks across Afghanistan, including the capital, Kabul. And he takes the post as American and NATO troops this month end their combat mission in a country still mired in war 13 years after the U.S.-led invasion toppled the Taliban regime for harboring those responsible for 9/11.

The Senate also approved the nomination of Richard Verma to be U.S. ambassador to India.