Separately , the U.S. military says an American soldier was killed late Thursday in an explosion in the city of Ramadi , in al-Anbar province .