Indian police have detained the editor of a Hindi-language magazine after he republished Danish cartoons of the Prophet Muhammad that have angered Muslims worldwide .