DOVER AIR FORCE BASE, Del. — President Trump traveled Monday to Dover Air Force Base in Delaware to pay respects to two US soldiers killed Saturday in Afghanistan when a soldier dressed in an Afghan army uniform opened fire with a machine gun.

National security adviser Robert O’Brien told reporters traveling with Trump on Air Force One that the president wrapped up a re-election campaign rally in New Hampshire a bit early so he could visit with the families of the soldiers. He described such moments as “probably the toughest thing he does as president,” along with visiting wounded soldiers at Walter Reed National Military Medical Center.

“These are terrible sacrifices for the families. And these guys are heroes, they’re real warriors and did a great job for the American people,” O’Brien said. “These are tough times. It’s tough for the president but he thinks it’s important to be there for the families and recognize them.”

The Defense Department has identified the dead American soldiers as Sgt. Javier Jaguar Gutierrez, 28, and Sgt. Antonio Rey Rodriguez, 28. Six other American soldiers were wounded in the attack.

Gutierrez was born in Jacksonville, North Carolina. He had also served in Iraq. Rodriguez was born in Las Cruces, New Mexico. He deployed eight times in support of Operation Freedom’s Sentinel, which began in 2015. Both men were posthumously promoted to sergeant first class and awarded the Bronze Star and Purple Heart.

Six US service members have been killed in Afghanistan since the start of 2020, including Saturday’s casualties. Last year, 20 US service personnel died in combat there and there were two non-combat deaths.

The incident came as Washington has sought to find an end to the war in Afghanistan.

Washington’s peace envoy Zalmay Khalilzad has been meeting with Taliban representatives in the Middle Eastern state of Qatar in recent weeks. He’s seeking an agreement to reduce hostilities to get a peace deal signed that would start negotiations among Afghans on both sides of the conflict.

In his State of the Union address last Tuesday, Trump referenced the peace talks, saying US soldiers were not meant to serve as “law enforcement agencies” for other nations.