Indian court clears ex-minister in Muslim massacre case