It was the second such attack in days and came just hours after President Vladimir V. Putin spoke at an economic forum in the city.