FBI agent arrested in Pakistan this week after he reportedly tried to board a domestic flight in the country. The FBI agent arrested in Pakistan was about to board a flight between Karachi and Islamabad. He was carrying ammunition and knives, said police on Wednesday.

According to police superintendent Malir Rao Anwar, the FBI agent arrested in Pakistan has been identified as Joel Cox. Cox was arrested on Monday while carrying 15 9-mm bullets, three small knives and a wrench. Anwar added that along with the items, Cox's laptop computer and cell phone have also been taken to a forensics lab for analysis.

Cox, the FBI agent arrested in Pakistan, was visiting the country as part of an assignment aiming to provide training to local police, says a U.S. law enforcement official. According to a State Department official, diplomats are currently working with Pakistani authorities to gain the release of Cox.

Cox faced anti-terrorism charges and appeared in court Tuesday. The charges restrict unauthorized weapons or ammunition on commercial flights. The FBI agent arrested in Pakistan, Cox is set to appear in court again on Saturday.

Meanwhile, Cox's defense is that employees for the FBI and other U.S. agencies are allowed to carry weapons in Pakistan when authorized.

This incident of an FBI agent arrested in Pakistan is hoped by U.S. officials to be more easily resolved than the 2011 case of a CIA contractor who got arrested and charged for killing two men. CIA contractor Raymond Davis said he believed the men were trying to rob him. According to CNN, the case resulted in a local anti-American sentiment and caused resentment until the United States government agreed to pay the families of the two men. After the compensation, Davis was freed.

FBI agent arrested in Pakistan is expected to undergo trial, says Anwar. He said that it's a matter of "upholding Pakistan's dignity and honor. (Cox) acted illegally and his arrest is perfectly legal."