The UAE has condemned the attack that targeted a church in the German city of Hamburg, which resulted in numerous deaths and injuries.