More than 40 journalists released after three hours in custody