Azerbaijan has accused Iran of a drone attack that injured civilians, leading to heightened tensions and military preparations.