Nigeria has released a New York-based journalist from detention after international pressure