Chilly powder thrown at UP BJP legislator