Police defend detaining of journalists