At least three people have been killed after two knife-wielding men took a number of people hostage at a church in northern France, police say.