I have it from Richerd Dawkins that a catholic priest said that to a child. My neighbour went to a catholic school and say he was told similar.
It is never the dogma that is a problem, because the dogma's are formulated by learned, civilized people. But you have to look at the religion and its cleric in a totality. All religions I know of are against killing, but we have all seen christian priests bless instruments of war, and we have seen wars (untill recently in northern Ireland between different versions of christianity. And I hardly need to mention the muslim religion, where clerics call for killing of authors and cartunists, and where clerics encourage young people to blow themselves up, and wage vicious wars between different versions of the religion. Even buddist priest are not beyound r3eproach in the regard.