Andhra Pradesh Chief Minister N Chandrababu Naidu on Thursday announced a judicial inquiry into the Tirupati temple stampede in which six people were killed and dozens injured, and transferred three senior officials including the Superintendent of Police of Tirupati district.