An American soldier has been killed in fighting in Afghanistan, the U.S. military said on Tuesday, as the Taliban step up attacks at the start of a spring offensive.