German mass shooting treated as far-right terrorist act