The authorities said no injuries had been reported, but two metro stations were closed on Wednesday after the shooting.