Catholic magazine apologizes over Mohammed cartoon