A stampede at the entrance of a temple in southern India has reportedly left at least six people dead and dozens injured.