Five people have died, with hundreds of others taken ill, after a gas leak in south India.