Kidnapped AP photographer released in Gaza