AP photographer held by U.S. military for months without charge