Markus Potzel, Germany's Special Envoy for Afghanistan and Pakistan in a tweet on Friday made the announcement and said a vast majority in German Parliament voted for an extension of Germany military's contribution to the Resolute Support Mission in Afghanistan.
The insurgents often exaggerate their battlefield claims and it was impossible to confirm whether the fighting Mujahid was referring to was the same combat in which the two USA service members were killed.
The statement did not provide details on the location of combat or on what led up to the deaths.
Despite the talks, Afghanistan is suffering from crippling violence, with a record number of civilian casualties past year.
The Resolute Support mission includes 17,000 troops, with about half of them from the United States.More news: Romney 'can’t understand' why Trump would bash McCain
Both sides have agreed on the planned withdrawal of USA forces, however there has been division over what a timeline for the withdrawal will look like.
According to reports, more than 2400 US service members have lost their lives in various incidents since the beginning of their mission in 2001.
The two sides seem to be in agreement about the withdrawal of American forces, but divided over the timeline and whether a residual American force would remain.
US envoy Zalmay Khalilzad, the Trump administration's main negotiator with the Taliban, concluded earlier this month a 13-day marathon session with leaders of the insurgent group.
The talks have also opened a rift between Washington and Kabul, with some Afghan officials accusing the United States of sidelining the Afghan government.
More civilians were killed past year in Afghanistan than at any time since records have been kept, with 3,804 civilians losing their lives.