Three people have been detained after multiple people were killed in a town in northern Germany.