ISLAMABAD, Pakistan — An American military attaché has been barred from leaving Pakistan after his sport utility vehicle struck a motorcycle and killed one of its riders this month, in another flare-up of diplomatic tensions between the two countries.

Pakistani officials have demanded that the United States waive diplomatic immunity for the attaché, Col. Joseph E. Hall, so that he can face criminal trial, but American officials have refused, according to the Pakistani Foreign Ministry. Pakistani officials said that Colonel Hall faces a civil suit from the family of the rider, Ateeq Baig, and that on Tuesday he was barred from leaving the country.

Video of Colonel Hall’s truck running a red light on April 7 as it struck the motorcycle, killing Mr. Baig and seriously injuring the other rider, has gone viral in Pakistan. The outrage it is causing has resonated in a way similar to the case of the C.I.A. security officer Raymond A. Davis, who in 2011 shot and killed two armed men in Lahore, causing serious and lasting fallout with Washington.

In Islamabad, Colonel Hall was briefly detained by the police after the crash, but was released because of his immunity, Pakistani police officials said.