Updated

The U.S. military says it will release Associated Press photographer Bilal Hussein after more than two years in custody.

The statement said Hussein will be freed Wednesday now that Iraqi judicial committees have granted him amnesty for all allegations.

Hussein has been in custody since April 12, 2006 when he was detained by U.S. Marines for alleged links to insurgents. The AP and Hussein deny any improper links and say he was only doing his job as a journalist.

AP President Tom Curley expressed relief after the statement issued by the military on Monday.

"In time we will celebrate Bilal's release. For now, we want him safe and united with his family. While we may never see eye to eye with the U.S. military over this case, it is time for all of us to move on," said Curley.