Azerbaijan has accused Iran of launching a drone attack that injured civilians and damaged infrastructure, escalating tensions in the region.